1
0
mirror of https://github.com/garbagemule/MobArena.git synced 2025-04-01 01:16:17 +02:00

Made redstoney things drop as items more rarely.

This commit is contained in:
Garbage Mule 2011-08-30 23:52:03 +02:00
parent 0fd997e3e9
commit f402800dd2
3 changed files with 4 additions and 4 deletions
MobArena.jar
src/com/garbagemule/MobArena

Binary file not shown.

View File

@ -64,10 +64,6 @@ public class MAListener implements ArenaListener
{
if (!arena.inRegion(event.getBlock().getLocation()) || arena.softRestore)
return;
MaterialData data = event.getBlock().getState().getData();
if (data instanceof Attachable || data instanceof Bed || data instanceof Door || data instanceof Redstone)
event.setCancelled(true);
}
*/
@ -216,7 +212,10 @@ 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);

View File

@ -120,6 +120,7 @@ public class MobArena extends JavaPlugin// implements ArenaPlugin
// Register events.
pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Priority.Highest, this);
pm.registerEvent(Event.Type.BLOCK_BURN, blockListener, Priority.Highest, this);
//pm.registerEvent(Event.Type.BLOCK_PHYSICS, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Priority.Highest, this);
pm.registerEvent(Event.Type.BLOCK_IGNITE, blockListener, Priority.Highest, this);
pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Priority.Normal, this);