Skip to content

Commit 2fa95a6

Browse files
committed
only prevent loot drops on fabric if the mob was actually consumed by a sepulcher
1 parent 13b648b commit 2fa95a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fabric/src/main/java/galena/doom_and_gloom/fabric/mixin/LivingEntityMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class LivingEntityMixin implements ISepulcherable {
1919

2020
@Inject(method = "dropAllDeathLoot", at = @At("HEAD"), cancellable = true)
2121
public void DG$cancelDrops(ServerLevel level, DamageSource damageSource, CallbackInfo ci) {
22-
ci.cancel();
22+
if(DG$wasSepulchered()) ci.cancel();
2323
}
2424

2525
@Override

0 commit comments

Comments
 (0)