Moved setTypeId() to the RepairableAttachable constructor
This commit is contained in:
1 parent
f402800dd2
commit
cc1ba24ef8
3 files changed
+2
-3
No files matched your search
@@ -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