Added y bounds checking for cPlayer::PlaceBlock (#5194)
This commit is contained in:
@@ -10879,16 +10879,8 @@ a_Player:OpenWindow(Window);
|
||||
Params =
|
||||
{
|
||||
{
|
||||
Name = "BlockX",
|
||||
Type = "number",
|
||||
},
|
||||
{
|
||||
Name = "BlockY",
|
||||
Type = "number",
|
||||
},
|
||||
{
|
||||
Name = "BlockZ",
|
||||
Type = "number",
|
||||
Name = "BlockPos",
|
||||
Type = "Vector3i",
|
||||
},
|
||||
{
|
||||
Name = "BlockType",
|
||||
@@ -10905,7 +10897,7 @@ a_Player:OpenWindow(Window);
|
||||
Type = "boolean",
|
||||
},
|
||||
},
|
||||
Notes = "Places a block while impersonating the player. The {{OnPlayerPlacingBlock|HOOK_PLAYER_PLACING_BLOCK}} hook is called before the placement, and if it succeeds, the block is placed and the {{OnPlayerPlacedBlock|HOOK_PLAYER_PLACED_BLOCK}} hook is called. Returns true iff the block is successfully placed. Assumes that the block is in a currently loaded chunk.",
|
||||
Notes = "Places a block while impersonating the player. The {{OnPlayerPlacingBlock|HOOK_PLAYER_PLACING_BLOCK}} hook is called before the placement, and if it succeeds, the block is placed and the {{OnPlayerPlacedBlock|HOOK_PLAYER_PLACED_BLOCK}} hook is called. Returns true iff the block is successfully placed.",
|
||||
},
|
||||
ReplaceOneEquippedItemTossRest =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user