Modified partChange event to take a parameter of the part that was changed and only send the event to other parts.

Update CCL dep
This commit is contained in:
Chicken Bones committed 2013-08-12 13:35:12 +10:00
1 parent 2291c3dd09
commit 37a3d89382
14 files changed
+65 -24

No files matched your search

@@ -97,7 +97,7 @@ public class LeverPart extends McSidedMetaPart implements IRedstonePart
world.playSoundEffect(x() + 0.5, y() + 0.5, z() + 0.5, "random.click", 0.3F, !active() ? 0.6F : 0.5F);
meta ^= 8;
sendDescUpdate();
tile().notifyPartChange();
tile().notifyPartChange(this);
tile().notifyNeighborChange(metaSideMap[meta&7]);
tile().markDirty();
return true;