This is not cancelable...
@@ -357,8 +357,10 @@ private static boolean createAndPostLivingUseItemEvent(SpongeToForgeEventData ev
} else if (spongeEvent instanceof UseItemStackEvent.Replace) {
forgeEvent = new LivingEntityUseItemEvent.Finish(entity, stack, spongeEvent.getRemainingDuration(), ItemStackUtil.toNative((
(UseItemStackEvent.Replace) spongeEvent).getItemStackResult().getFinal().createStack()));
+ if (forgeEvent.isCancelable()) {
forgeEvent.setCanceled(((UseItemStackEvent.Replace) spongeEvent).isCancelled());
}
+ }
if (forgeEvent == null) {
return false;
