Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
c3bb34ed6b
Commit
0c947f0b5b
@ -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));
|
||||
|
@ -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();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren