mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-18 11:29:33 +00:00
Safeguarded redstone torch ticking.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user