Skip to content

Commit

Permalink
Merge pull request #24 from ZhuRuoLing/1.21-neoforge
Browse files Browse the repository at this point in the history
fix immutable list bug
  • Loading branch information
xkball authored Nov 10, 2024
2 parents 0af87f9 + d2706b2 commit f1202f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/teacon/powertool/PowerToolEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static void removeDisplayMode(
BlockPos pos,
@Nullable ServerPlayer player
) {
List<BlockPos> displayEnabledPosList = chunk.getData(PowerToolAttachments.DISPLAY_MODE);
List<BlockPos> displayEnabledPosList = new ArrayList<>(chunk.getData(PowerToolAttachments.DISPLAY_MODE));
displayEnabledPosList.remove(pos);
chunk.setUnsaved(true);
chunk.setData(PowerToolAttachments.DISPLAY_MODE, displayEnabledPosList);
Expand Down

0 comments on commit f1202f7

Please sign in to comment.