Merge pull request #1058 from tommy1019/patch-1
Shift-right click on lapis pipe scrolls backwards.
This commit is contained in:
commit
474d422bb6
1 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,12 @@ public class PipeItemsLapis extends Pipe<PipeTransportItems> implements IItemTra
|
|||
public boolean blockActivated(EntityPlayer entityplayer) {
|
||||
Item equipped = entityplayer.getCurrentEquippedItem() != null ? entityplayer.getCurrentEquippedItem().getItem() : null;
|
||||
if (equipped instanceof IToolWrench && ((IToolWrench) equipped).canWrench(entityplayer, container.xCoord, container.yCoord, container.zCoord)) {
|
||||
if (entityplayer.isSneaking()) {
|
||||
setColor(getColor().fromId(container.getBlockMetadata() - 1));
|
||||
} else {
|
||||
setColor(getColor().getNext());
|
||||
}
|
||||
|
||||
((IToolWrench) equipped).wrenchUsed(entityplayer, container.xCoord, container.yCoord, container.zCoord);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue