Merge pull request #1348 from SandGrainOne/master

Corrected method names in gold and void pipe.
This commit is contained in:
Flow86 2013-11-30 05:57:20 -08:00
commit 797aef5082
2 changed files with 4 additions and 4 deletions

View file

@ -36,9 +36,9 @@ public class PipeItemsGold extends Pipe {
return PipeIconProvider.TYPE.PipeItemsGold.ordinal();
}
public void handleEvent(PipeEventItem.AdjustSpeed event) {
public void eventHandler(PipeEventItem.AdjustSpeed event) {
event.handled = true;
TravelingItem item = event.item;
item.setSpeed(Math.min(Math.max(TransportConstants.PIPE_NORMAL_SPEED, item.getSpeed()) * 2f, TransportConstants.PIPE_NORMAL_SPEED * 20F));
item.setSpeed(Math.min(Math.max(TransportConstants.PIPE_NORMAL_SPEED, item.getSpeed()) * 4f, TransportConstants.PIPE_NORMAL_SPEED * 20F));
}
}

View file

@ -34,11 +34,11 @@ public class PipeItemsVoid extends Pipe<PipeTransportItems> {
return PipeIconProvider.TYPE.PipeItemsVoid.ordinal();
}
public void handleEvent(PipeEventItem.DropItem event) {
public void eventHandler(PipeEventItem.DropItem event) {
event.entity = null;
}
public void handleEvent(PipeEventItem.ReachedCenter event) {
public void eventHandler(PipeEventItem.ReachedCenter event) {
transport.items.scheduleRemoval(event.item);
}
}