Ignore hanging entities that break due to lack of supporting blocks
Closes #573
This commit is contained in:
parent
6ddcaec112
commit
99a676a6d1
|
|
@ -563,6 +563,9 @@ public class EntityEventHandler implements Listener
|
||||||
{
|
{
|
||||||
//don't track in worlds where claims are not enabled
|
//don't track in worlds where claims are not enabled
|
||||||
if(!GriefPrevention.instance.claimsEnabledForWorld(event.getEntity().getWorld())) return;
|
if(!GriefPrevention.instance.claimsEnabledForWorld(event.getEntity().getWorld())) return;
|
||||||
|
|
||||||
|
//Ignore cases where itemframes should break due to no supporting blocks
|
||||||
|
if(event.getCause() == RemoveCause.PHYSICS) return;
|
||||||
|
|
||||||
//FEATURE: claimed paintings are protected from breakage
|
//FEATURE: claimed paintings are protected from breakage
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user