Moved setTypeId() to the RepairableAttachable constructor

This commit is contained in:
Garbage Mule 2011-08-31 00:33:40 +02:00
parent f402800dd2
commit cc1ba24ef8
3 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -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);

View File

@ -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()