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:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user