mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-01 08:20:43 +01:00
cleanup
This commit is contained in:
parent
378ddb9084
commit
4955d6eda8
@ -6,7 +6,6 @@ import com.songoda.ultimaterepairing.anvil.UAnvil;
|
|||||||
import com.songoda.ultimaterepairing.gui.AnvilSettingsGui;
|
import com.songoda.ultimaterepairing.gui.AnvilSettingsGui;
|
||||||
import com.songoda.ultimaterepairing.settings.Settings;
|
import com.songoda.ultimaterepairing.settings.Settings;
|
||||||
import com.songoda.ultimaterepairing.utils.Debugger;
|
import com.songoda.ultimaterepairing.utils.Debugger;
|
||||||
import com.songoda.ultimaterepairing.utils.Methods;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
@ -42,8 +41,8 @@ public class InteractListeners implements Listener {
|
|||||||
|
|
||||||
if (!event.getClickedBlock().getType().name().contains("ANVIL") // don't pay attention if it's not an anvil
|
if (!event.getClickedBlock().getType().name().contains("ANVIL") // don't pay attention if it's not an anvil
|
||||||
// also don't handle if we don't have perms to use this repair anvil
|
// also don't handle if we don't have perms to use this repair anvil
|
||||||
|| !(Settings.PERMISSION_ANVIL_PLACE.getBoolean()
|
|| (Settings.PERMISSION_ANVIL_PLACE.getBoolean()
|
||||||
|| !((anvil1 = instance.getAnvilManager().getAnvil(event.getClickedBlock())).isPermPlaced()))) {
|
&& !(anvil1 = instance.getAnvilManager().getAnvil(event.getClickedBlock())).isPermPlaced())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
anvil1 = anvil1 != null ? anvil1 : instance.getAnvilManager().getAnvil(event.getClickedBlock());
|
anvil1 = anvil1 != null ? anvil1 : instance.getAnvilManager().getAnvil(event.getClickedBlock());
|
||||||
|
Loading…
Reference in New Issue
Block a user