1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-24 18:37:38 +00:00

Remove usage of deprecated event constructor

This requires a Forge bump, but probably no harm in doing so anyway.
We're on an ancient (2nd Nov) version. Fixes #665.
This commit is contained in:
Jonathan Coates
2021-01-09 18:49:40 +00:00
parent 7ca261d763
commit 7b476cb24b
3 changed files with 3 additions and 3 deletions

View File

@@ -353,7 +353,7 @@ public class TurtlePlaceCommand implements ITurtleCommand
TileEntity existingTile = turtle.getWorld().getTileEntity( position );
// See PlayerInteractionManager.processRightClickBlock
PlayerInteractEvent.RightClickBlock event = ForgeHooks.onRightClickBlock( turtlePlayer, Hand.MAIN_HAND, position, side );
PlayerInteractEvent.RightClickBlock event = ForgeHooks.onRightClickBlock( turtlePlayer, Hand.MAIN_HAND, position, hit );
if( !event.isCanceled() )
{
if( item.onItemUseFirst( stack, context ).isSuccessOrConsume() )