mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-03-09 13:19:10 +01:00
Moved setTypeId() to the RepairableAttachable constructor
This commit is contained in:
parent
f402800dd2
commit
cc1ba24ef8
BIN
MobArena.jar
BIN
MobArena.jar
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user