1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-01 18:17:55 +00:00

Fix crash from inspecting sign text

This commit is contained in:
Jacob Farley
2020-09-06 18:45:30 -05:00
parent 1a21529499
commit 14df44f09d
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ public class SignInspectHandler {
SignBlockEntity sbe = (SignBlockEntity)be;
Map<Integer, String> textTable = new HashMap<>();
for(int k = 0; k < 4; k++) {
textTable.put(k+1, sbe.getTextOnRow(k).asString());
textTable.put(k+1, sbe.text[k].asString());
}
event.getData().put("text", textTable);
}

View File

@@ -21,3 +21,4 @@ accessible field net/minecraft/client/util/math/AffineTransformation translation
accessible field net/minecraft/client/util/math/AffineTransformation scale Lnet/minecraft/client/util/math/Vector3f;
accessible field net/minecraft/client/util/math/AffineTransformation rotation1 Lnet/minecraft/util/math/Quaternion;
accessible field net/minecraft/sound/SoundEvent id Lnet/minecraft/util/Identifier;
accessible field net/minecraft/block/entity/SignBlockEntity text [Lnet/minecraft/text/Text;