SteamWar/FightSystem
Archiviert
13
1

Some (maybe) bugfixes

Dieser Commit ist enthalten in:
Travis CI 2019-06-14 19:11:09 +02:00
Ursprung 64ef4722cd
Commit e8b981d165
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -102,9 +102,6 @@ public class FightSystem extends JavaPlugin {
TechHider.init(); TechHider.init();
} }
@Override
public void onDisable() {}
private void loadConfig() { private void loadConfig() {
if(!new File("plugins/" + this.getName() + "/kits.data").exists()) { if(!new File("plugins/" + this.getName() + "/kits.data").exists()) {
saveKitData(); saveKitData();

Datei anzeigen

@ -194,7 +194,7 @@ public class TechHider {
MultiBlockChangeInfo[] changes = blockStructure.read(0); MultiBlockChangeInfo[] changes = blockStructure.read(0);
Player p = e.getPlayer(); Player p = e.getPlayer();
ChunkCoordIntPair pos = changes[0].getChunk(); ChunkCoordIntPair pos = packet.getChunkCoordIntPairs().read(0);
if(bypass(p, pos.getChunkX(), pos.getChunkZ())) if(bypass(p, pos.getChunkX(), pos.getChunkZ()))
return; return;
@ -256,7 +256,7 @@ public class TechHider {
FightTeam ft = Fight.getPlayerTeam(p); FightTeam ft = Fight.getPlayerTeam(p);
if(ft == null){ if(ft == null){
return false; return false;
}else if(ft == Fight.getBlueTeam()){ }else if(ft.equals(Fight.getBlueTeam())){
return FightSystem.isEntern() || !(redMinX <= chunkX && chunkX <= redMaxX && redMinZ <= chunkZ && chunkZ <= redMaxZ); return FightSystem.isEntern() || !(redMinX <= chunkX && chunkX <= redMaxX && redMinZ <= chunkZ && chunkZ <= redMaxZ);
}else{ }else{
return FightSystem.isEntern() || !(blueMinX <= chunkX && chunkX <= blueMaxX && blueMinZ <= chunkZ && chunkZ <= blueMaxZ); return FightSystem.isEntern() || !(blueMinX <= chunkX && chunkX <= blueMaxX && blueMinZ <= chunkZ && chunkZ <= blueMaxZ);