Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
63e8b96ec9
Commit
85527f7004
@ -44,7 +44,7 @@ public class SimulatorCommand extends SWCommand {
|
||||
|
||||
@Register(description = "SIMULATOR_HELP")
|
||||
public void genericCommand(@Validator Player p) {
|
||||
SimulatorCursor.hide(p, null);
|
||||
SimulatorCursor.hide(p);
|
||||
SWUtils.giveItemToPlayer(p, SimulatorStorage.getWand(p));
|
||||
}
|
||||
|
||||
|
@ -48,9 +48,6 @@ public class SimulatorCursor {
|
||||
|
||||
if (cursor != null)
|
||||
cursor.close();
|
||||
|
||||
tntSimulator.show(player);
|
||||
|
||||
if (result == null)
|
||||
return;
|
||||
|
||||
@ -84,21 +81,6 @@ public class SimulatorCursor {
|
||||
if (cursor == null) return;
|
||||
|
||||
cursor.close();
|
||||
SimulatorStorage.getSimulatorNames().forEach(s -> {
|
||||
SimulatorStorage.getSimulator(s).hide(player);
|
||||
});
|
||||
}
|
||||
|
||||
public void hide(Player player, TNTSimulator tntSimulator) {
|
||||
REntityServer cursor = rEntityServerMap.get(player);
|
||||
|
||||
if (cursor != null)
|
||||
cursor.close();
|
||||
|
||||
if (tntSimulator != null) {
|
||||
tntSimulator.hide(player);
|
||||
}
|
||||
rEntityServerMap.remove(player);
|
||||
}
|
||||
|
||||
public static Vector getPos(Player player, RayTraceUtils.RRayTraceResult result) {
|
||||
|
@ -94,6 +94,7 @@ public class TNTSimulatorListener implements Listener {
|
||||
if (!tntSimulator.getKey().hasPreview(player)) return o;
|
||||
if (!tntSimulator.getKey().getPreviewRecord().isAir(x.get(o), y.get(o), z.get(o))) return o;
|
||||
Bukkit.getScheduler().runTaskLater(BauSystem.getInstance(), () -> {
|
||||
SimulatorCursor.hide(player);
|
||||
PlayerMovementWrapper.impl.setPosition(player, o);
|
||||
}, 0L);
|
||||
return null;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren