mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 04:32:24 +00:00
Redstone torch parts
Improved tick scheduler, added random update ticks
This commit is contained in:
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]);
|
||||
|
||||
Reference in new issue
Block a user