diff --git a/src/me/yaruma/fightsystem/FightSystem.java b/src/me/yaruma/fightsystem/FightSystem.java index 5a898e3..dd2a10d 100644 --- a/src/me/yaruma/fightsystem/FightSystem.java +++ b/src/me/yaruma/fightsystem/FightSystem.java @@ -102,9 +102,6 @@ public class FightSystem extends JavaPlugin { TechHider.init(); } - @Override - public void onDisable() {} - private void loadConfig() { if(!new File("plugins/" + this.getName() + "/kits.data").exists()) { saveKitData(); diff --git a/src/me/yaruma/fightsystem/utils/TechHider.java b/src/me/yaruma/fightsystem/utils/TechHider.java index 3f5283c..1c27ec5 100644 --- a/src/me/yaruma/fightsystem/utils/TechHider.java +++ b/src/me/yaruma/fightsystem/utils/TechHider.java @@ -194,7 +194,7 @@ public class TechHider { MultiBlockChangeInfo[] changes = blockStructure.read(0); Player p = e.getPlayer(); - ChunkCoordIntPair pos = changes[0].getChunk(); + ChunkCoordIntPair pos = packet.getChunkCoordIntPairs().read(0); if(bypass(p, pos.getChunkX(), pos.getChunkZ())) return; @@ -256,7 +256,7 @@ public class TechHider { FightTeam ft = Fight.getPlayerTeam(p); if(ft == null){ return false; - }else if(ft == Fight.getBlueTeam()){ + }else if(ft.equals(Fight.getBlueTeam())){ return FightSystem.isEntern() || !(redMinX <= chunkX && chunkX <= redMaxX && redMinZ <= chunkZ && chunkZ <= redMaxZ); }else{ return FightSystem.isEntern() || !(blueMinX <= chunkX && chunkX <= blueMaxX && blueMinZ <= chunkZ && chunkZ <= blueMaxZ);