From 77e38d6d999ab22265db806ea0aa57a11017d086 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 24 Dec 2022 13:31:00 +0100 Subject: [PATCH] Fix getMaterial and setMaterial --- .../bausystem/features/script/command/world/GetMaterial.java | 2 +- .../bausystem/features/script/command/world/SetMaterial.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/GetMaterial.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/GetMaterial.java index 60dd9243..29b7807f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/GetMaterial.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/GetMaterial.java @@ -75,6 +75,6 @@ public class GetMaterial implements SpecialCommand { int y = (int) scriptExecutor.getOrItselfValue(command[3]).asLong(); int z = (int) scriptExecutor.getOrItselfValue(command[4]).asLong(); scriptExecutor.getLocalVariables().putValue(command[1], new Value.StringValue(world.getBlockAt(x, y, z).getType().name())); - return false; + return true; } } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/SetMaterial.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/SetMaterial.java index 12dd41c2..0c4ac8b2 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/SetMaterial.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/command/world/SetMaterial.java @@ -78,6 +78,6 @@ public class SetMaterial implements SpecialCommand { } catch (Exception e) { // Ignored } - return false; + return true; } }