Fix Naming in TNTSimulator
Dieser Commit ist enthalten in:
Ursprung
0040f2c40d
Commit
a2e677b369
@ -30,8 +30,8 @@ class SimulatorEntity_15 extends BaseEntity_15 implements AbstractSimulatorEntit
|
||||
|
||||
private ReferenceCounter referenceCounter = new ReferenceCounter();
|
||||
|
||||
public SimulatorEntity_15(World world, Vector position, boolean tnt) {
|
||||
super(world, position, tnt ? Material.TNT : Material.WHITE_STAINED_GLASS);
|
||||
public SimulatorEntity_15(World world, Vector position, boolean highlight) {
|
||||
super(world, position, highlight ? Material.TNT : Material.WHITE_STAINED_GLASS);
|
||||
|
||||
this.setNoGravity(true);
|
||||
this.ticksLived = -12000;
|
||||
|
@ -24,8 +24,8 @@ import org.bukkit.util.Vector;
|
||||
|
||||
public class Simulator_15 {
|
||||
|
||||
public static AbstractSimulatorEntity create(World world, Vector tntPosition, boolean tnt) {
|
||||
return new SimulatorEntity_15(world, tntPosition, tnt);
|
||||
public static AbstractSimulatorEntity create(World world, Vector tntPosition, boolean highlight) {
|
||||
return new SimulatorEntity_15(world, tntPosition, highlight);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@
|
||||
package de.steamwar.bausystem.features.simulator;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.SWUtils;
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.features.simulator.show.SimulatorEntityShowMode;
|
||||
import de.steamwar.inventory.SWAnvilInv;
|
||||
import de.steamwar.inventory.SWInventory;
|
||||
@ -94,7 +96,7 @@ public class TNTSimulator {
|
||||
|
||||
cursor = SimulatorEntityShowMode.createEntity(player, entity.position, false);
|
||||
cursor.display(player);
|
||||
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("§ePosition bearbeiten"));
|
||||
SWUtils.sendToActionbar(player, ColorConfig.HIGHLIGHT + "Position bearbeiten");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -48,8 +48,8 @@ public class SimulatorEntityShowMode implements ShowMode<Position> {
|
||||
entity.display(player);
|
||||
}
|
||||
|
||||
public static AbstractSimulatorEntity createEntity(Player player, Vector position, boolean tnt) {
|
||||
return VersionedCallable.call(new VersionedCallable<>(() -> Simulator_15.create(player.getWorld(), position, tnt), 15));
|
||||
public static AbstractSimulatorEntity createEntity(Player player, Vector position, boolean highlight) {
|
||||
return VersionedCallable.call(new VersionedCallable<>(() -> Simulator_15.create(player.getWorld(), position, highlight), 15));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren