fix wither ignoring claims on forge

This commit is contained in:
Flemmli97 2022-02-27 18:30:55 +01:00
parent 72411f6f2f
commit 2545b6e9b5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Flan 1.7.3
================
- Internal changes
- Forge: Fix wither ignoring claims
Flan 1.7.2
================

View File

@ -78,7 +78,7 @@ public class EntityInteractEventsForge {
* EntityInteractEvents.canSnowGolemInteract
*/
public static void mobGriefing(EntityMobGriefingEvent event) {
if (event.getEntity() instanceof WitherBoss && EntityInteractEvents.witherCanDestroy((WitherBoss) event.getEntity())) {
if (event.getEntity() instanceof WitherBoss && !EntityInteractEvents.witherCanDestroy((WitherBoss) event.getEntity())) {
event.setResult(Event.Result.DENY);
}
if (event.getEntity() instanceof SnowGolem && !EntityInteractEvents.canSnowGolemInteract((SnowGolem) event.getEntity())) {