SteamWar/FightSystem
Archiviert
13
1

Fix debug code
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2024-03-11 22:49:22 +01:00
Ursprung c3bb34ed6b
Commit 0c947f0b5b
2 geänderte Dateien mit 4 neuen und 12 gelöschten Zeilen

Datei anzeigen

@ -27,7 +27,6 @@ import net.minecraft.core.SectionPosition;
import net.minecraft.network.protocol.game.PacketPlayOutBlockChange;
import net.minecraft.network.protocol.game.PacketPlayOutMultiBlockChange;
import net.minecraft.world.level.block.state.IBlockData;
import org.bukkit.Material;
import org.bukkit.block.data.BlockData;
import java.util.ArrayList;
@ -42,8 +41,7 @@ public class HullHiderWrapper18 implements HullHiderWrapper {
List<Object> blockdata = new ArrayList<>(changes.size());
changes.removeIf(change -> {
//BlockData data = Config.world.getBlockData(change.getX(), change.getY(), change.getZ());
BlockData data = Material.EMERALD_BLOCK.createBlockData();
BlockData data = Config.world.getBlockData(change.getX(), change.getY(), change.getZ());
boolean unchanged = data.getMaterial() == Config.ObfuscateWith;
if(!unchanged)
blockdata.add(getState.invoke(data));

Datei anzeigen

@ -24,6 +24,7 @@ import de.steamwar.entity.REntity;
import de.steamwar.fightsystem.Config;
import de.steamwar.fightsystem.FightSystem;
import de.steamwar.fightsystem.fight.FightTeam;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.bukkit.Location;
import org.bukkit.Material;
@ -306,20 +307,13 @@ public class Hull {
}
@Getter
@AllArgsConstructor
public static class IntVector {
@Getter
private final int x;
@Getter
private final int y;
@Getter
private final int z;
public IntVector(int x, int y, int z) {
this.x = x;
this.y = y;
this.z = z;
}
public IntVector(Location location) {
this.x = location.getBlockX();
this.y = location.getBlockY();