2023-08-25 14:59:50 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Allink <arclicious@vivaldi.net>
|
|
|
|
Date: Fri, 25 Aug 2023 11:51:47 +0100
|
|
|
|
Subject: [PATCH] Add length limit to note block sound
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
2023-12-11 18:50:06 +00:00
|
|
|
index 4430520d32024d897c93c1d9f8652ccb2c202c01..ceef1a7fd41751f553f21784217f95a210bd24d9 100644
|
2023-08-25 14:59:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
2023-12-11 18:50:06 +00:00
|
|
|
@@ -113,7 +113,7 @@ public class SkullBlockEntity extends BlockEntity {
|
2023-08-25 14:59:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (nbt.contains("note_block_sound", 8)) {
|
|
|
|
- this.noteBlockSound = ResourceLocation.tryParse(nbt.getString("note_block_sound"));
|
|
|
|
+ this.noteBlockSound = ResourceLocation.tryParse(StringUtil.truncateStringIfNecessary(nbt.getString("note_block_sound"), 32767, false)); // Scissors - Add length limit to note block sound
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|