Moved setTypeId() to the RepairableAttachable constructor
This commit is contained in:
Binary file not shown.
@@ -212,10 +212,7 @@ public class MAListener implements ArenaListener
|
|||||||
else if (state.getData() instanceof Door)
|
else if (state.getData() instanceof Door)
|
||||||
r = new RepairableDoor(state);
|
r = new RepairableDoor(state);
|
||||||
else if (state.getData() instanceof Attachable || state.getData() instanceof Redstone)
|
else if (state.getData() instanceof Attachable || state.getData() instanceof Redstone)
|
||||||
{
|
|
||||||
r = new RepairableAttachable(state);
|
r = new RepairableAttachable(state);
|
||||||
b.setTypeId(1);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
r = new RepairableBlock(state);
|
r = new RepairableBlock(state);
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ public class RepairableAttachable extends RepairableBlock
|
|||||||
x = attached.getX();
|
x = attached.getX();
|
||||||
y = attached.getY();
|
y = attached.getY();
|
||||||
z = attached.getZ();
|
z = attached.getZ();
|
||||||
|
|
||||||
|
state.getBlock().setTypeId(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void repair()
|
public void repair()
|
||||||
|
|||||||
Reference in New Issue
Block a user