Merge pull request #2091 from Rakete1111/master
Placing buckets up to 25 blocks away #2059
This commit is contained in:
commit
bd95d7bf7b
@ -80,6 +80,13 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check to see if destination block is too far away
|
||||||
|
// Reach Distance Multiplayer = 5 Blocks
|
||||||
|
if ((BlockPos.x - a_Player->GetPosX() > 5) || (BlockPos.z - a_Player->GetPosZ() > 5))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Remove water / lava block (unless plugins disagree)
|
// Remove water / lava block (unless plugins disagree)
|
||||||
if (!a_Player->PlaceBlock(BlockPos.x, BlockPos.y, BlockPos.z, E_BLOCK_AIR, 0))
|
if (!a_Player->PlaceBlock(BlockPos.x, BlockPos.y, BlockPos.z, E_BLOCK_AIR, 0))
|
||||||
{
|
{
|
||||||
@ -127,6 +134,13 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check to see if destination block is too far away
|
||||||
|
// Reach Distance Multiplayer = 5 Blocks
|
||||||
|
if ((BlockPos.x - a_Player->GetPosX() > 5) || (BlockPos.z - a_Player->GetPosZ() > 5))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (a_Player->GetGameMode() != gmCreative)
|
if (a_Player->GetGameMode() != gmCreative)
|
||||||
{
|
{
|
||||||
// Remove fluid bucket, add empty bucket:
|
// Remove fluid bucket, add empty bucket:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user