Skip to content

Commit 800a61f

Browse files
committed
Always queue block entities.
Don't rely on `inLevel` being true, most of this functionality should be handled by the various chunks.
1 parent 9b21797 commit 800a61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/noobanidus/mods/lootr/mixins/MixinLevelChunk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@Mixin(LevelChunk.class)
1414
public class MixinLevelChunk {
15-
@Inject(method="addAndRegisterBlockEntity", at=@At(target="Lnet/minecraft/world/level/block/entity/BlockEntity;onLoad()V", remap=false, value="INVOKE", shift= At.Shift.AFTER))
15+
@Inject(method="addAndRegisterBlockEntity", at=@At(value="RETURN"))
1616
private void lootrAddAndRegisterBlockEntity (BlockEntity entity, CallbackInfo cir) {
1717
if (entity instanceof RandomizableContainerBlockEntity && !(entity instanceof ILootBlockEntity)) {
1818
LevelChunk levelChunk = (LevelChunk) (Object) this;

0 commit comments

Comments
 (0)