Skip to content

Commit

Permalink
Simplify shulkerbox-opening-bug patch
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Dec 26, 2023
1 parent ff45a5f commit ea3ebea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: booky10 <[email protected]>
Date: Tue, 21 Mar 2023 15:24:33 +0100
Subject: [PATCH] Don't apply de-synced opencount for shulker boxes

Would bug out when opening a shulker box multiple times in a tick, caused by ping or fast clicking.

The issue is caused by how block events in minecraft work. Just commenting this line out prevents
the wrong data from being set - there isn't a reason to do this on the server anyway.

diff --git a/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
index 1fa22445a4ecc8c08dbcf0cc6bd39dc5003604c4..89c0fbe124cdb9a2f2ed2253eece86c755504f1d 100644
--- a/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
+++ b/src/main/java/net/minecraft/world/level/block/entity/ShulkerBoxBlockEntity.java
@@ -179,7 +179,7 @@ public class ShulkerBoxBlockEntity extends RandomizableContainerBlockEntity impl
@Override
public boolean triggerEvent(int type, int data) {
if (type == 1) {
- this.openCount = data;
+ // this.openCount = data; // CloudPlane
if (data == 0) {
this.animationStatus = ShulkerBoxBlockEntity.AnimationStatus.CLOSING;
}
61 changes: 0 additions & 61 deletions patches/server/0013-Save-shulker-box-openers.patch

This file was deleted.

0 comments on commit ea3ebea

Please sign in to comment.