Ignore hanging entities that break due to lack of supporting blocks

Closes #573
This commit is contained in:
RoboMWM 2019-07-29 21:19:52 -07:00
parent 6ddcaec112
commit 99a676a6d1

View File

@ -563,6 +563,9 @@ public class EntityEventHandler implements Listener
{
//don't track in worlds where claims are not enabled
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