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:
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user