1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 20:20:30 +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

@ -3,5 +3,5 @@ mod_version=1.95.1
# Minecraft properties (update mods.toml when changing) # Minecraft properties (update mods.toml when changing)
mc_version=1.16.4 mc_version=1.16.4
forge_version=35.0.1 forge_version=35.1.16
mappings_version=20201028-1.16.3 mappings_version=20201028-1.16.3

View File

@ -353,7 +353,7 @@ public class TurtlePlaceCommand implements ITurtleCommand
TileEntity existingTile = turtle.getWorld().getTileEntity( position ); TileEntity existingTile = turtle.getWorld().getTileEntity( position );
// See PlayerInteractionManager.processRightClickBlock // 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( !event.isCanceled() )
{ {
if( item.onItemUseFirst( stack, context ).isSuccessOrConsume() ) if( item.onItemUseFirst( stack, context ).isSuccessOrConsume() )

View File

@ -20,6 +20,6 @@ CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles a
[[dependencies.computercraft]] [[dependencies.computercraft]]
modId="forge" modId="forge"
mandatory=true mandatory=true
versionRange="[35.0.1,36)" versionRange="[35.1.16,36)"
ordering="NONE" ordering="NONE"
side="BOTH" side="BOTH"