Redstone torch parts

Improved tick scheduler, added random update ticks
This commit is contained in:
Chicken Bones committed 2013-06-04 01:47:51 +10:00
1 parent 3fd55ce0a0
commit 5032937cfb
11 files changed
+344 -17

No files matched your search

@@ -95,7 +95,7 @@ public class LeverPart extends McSidedMetaPart implements IRedstonePart
return true;
world.playSoundEffect(getTile().xCoord + 0.5, getTile().yCoord + 0.5, getTile().zCoord + 0.5, "random.click", 0.3F, !active() ? 0.6F : 0.5F);
meta = (byte) (meta^8);
meta ^= 8;
sendDescUpdate();
tile().notifyPartChange();
tile().notifyNeighborChange(metaSideMap[meta&7]);