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