Skip to content

Commit 2881e99

Browse files
authored
Fixed re-registration bug
When a minecart is registered by a dispenser, then deregistered and re‑registered without ever moving, the chunk never loads because the lastChunkPos is never reset
1 parent 26af41c commit 2881e99

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/io/nihlen/scriptschunkloaders/mixin/AbstractMinecartEntityMixin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private void injectConstructor(CallbackInfo callbackInfo) {
8484

8585
public void scripts_chunk_loaders$stopChunkLoader() {
8686
scripts_chunk_loaders$stopChunkLoader(false);
87+
this.lastChunkPos = null;
8788
}
8889
public void scripts_chunk_loaders$stopChunkLoader(Boolean keepName) {
8990
this.isChunkLoader = false;

0 commit comments

Comments
 (0)