mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Cleanup
This commit is contained in:
@@ -205,13 +205,13 @@ public class BlockListener implements Listener {
|
||||
if (event.getSource().getType() != Material.GRASS_BLOCK) return;
|
||||
|
||||
Reinforcement destRein = ReinforcementLogic.getReinforcementProtecting(event.getBlock());
|
||||
if (destRein == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (destRein != null) {
|
||||
Reinforcement sourceRein = ReinforcementLogic.getReinforcementProtecting(event.getSource());
|
||||
|
||||
if (sourceRein == null || sourceRein.getGroupId() != destRein.getGroupId()) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
Reinforcement sourceRein = ReinforcementLogic.getReinforcementProtecting(event.getSource());
|
||||
if (sourceRein == null || sourceRein.getGroupId() != destRein.getGroupId()) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user