Update MixinTileEntityLootable.java

This commit is contained in:
FatSaw
2023-03-07 00:04:33 +02:00
parent ff35e4a14b
commit 2eef58a9e3

View File

@@ -10,7 +10,7 @@ import net.minecraft.server.TileEntityLootable;
@Mixin(value = TileEntityLootable.class, remap = false) @Mixin(value = TileEntityLootable.class, remap = false)
public abstract class MixinTileEntityLootable { public abstract class MixinTileEntityLootable {
@Inject(at = @At("HEAD"), method = "b()V", cancellable = true) @Inject(at = @At("HEAD"), method = "b(Lnet/minecraft/server/EntityHuman;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V", cancellable = true)
private void b(EntityHuman entityhuman, CallbackInfo ci) { private void b(EntityHuman entityhuman, CallbackInfo ci) {
if (entityhuman == null) ci.cancel(); if (entityhuman == null) ci.cancel();
} }