Safeguarded redstone torch ticking.

This commit is contained in:
Chicken-Bones committed 2013-12-30 13:52:35 +10:00
1 parent c753789e28
commit 36b2306584
2 files changed
+3 -3

No files matched your search

@@ -131,7 +131,7 @@ public class ButtonPart extends McSidedMetaPart implements IFaceRedstonePart
meta^=8;
world().playSoundEffect(x() + 0.5, y() + 0.5, z() + 0.5, "random.click", 0.3F, in ? 0.6F : 0.5F);
if(in)
TickScheduler.scheduleTick(this, delay());
scheduleTick(delay());
sendDescUpdate();
tile().notifyPartChange(this);
@@ -148,7 +148,7 @@ public class ButtonPart extends McSidedMetaPart implements IFaceRedstonePart
if(arrows != pressed)
toggle();
if(arrows && pressed)
TickScheduler.scheduleTick(this, delay());
scheduleTick(delay());
}
@Override