mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 12:10: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:
parent
7ca261d763
commit
7b476cb24b
@ -3,5 +3,5 @@ mod_version=1.95.1
|
||||
|
||||
# Minecraft properties (update mods.toml when changing)
|
||||
mc_version=1.16.4
|
||||
forge_version=35.0.1
|
||||
forge_version=35.1.16
|
||||
mappings_version=20201028-1.16.3
|
||||
|
@ -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() )
|
||||
|
@ -20,6 +20,6 @@ CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles a
|
||||
[[dependencies.computercraft]]
|
||||
modId="forge"
|
||||
mandatory=true
|
||||
versionRange="[35.0.1,36)"
|
||||
versionRange="[35.1.16,36)"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
Loading…
Reference in New Issue
Block a user