mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix breaking despite cancel in creative mode for PlayerInteractEvent OR #247
This commit is contained in:
1 parent
2087b2b44e
commit
95ec601569
1 file changed
+1
@@ -40,6 +40,7 @@ public class PlayerInteractEvent extends PlayerEvent
|
||||
@Override
|
||||
public void setCanceled(boolean cancel)
|
||||
{
|
||||
super.setCanceled(cancel);
|
||||
useBlock = (cancel ? DENY : useBlock == DENY ? DEFAULT : useBlock);
|
||||
useItem = (cancel ? DENY : useItem == DENY ? DEFAULT : useItem);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user