mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 04:33:52 +00:00
cleanup
This commit is contained in:
parent
98be92ed0c
commit
def50adfcc
11 changed files with 2964 additions and 3021 deletions
|
|
@ -263,7 +263,7 @@ bool ServerPlayerGameMode::destroyBlock(int x, int y, int z)
|
|||
{
|
||||
if (!EnchantmentHelper::hasSilkTouch(player))
|
||||
{
|
||||
// todo: shouldnt we get these values from the actual blocks?
|
||||
// (SYLV)todo: shouldnt we get these values from the actual blocks?
|
||||
if (t == Tile::coalOre_Id)
|
||||
eventExp = Mth::nextInt(level->random, 0, 2);
|
||||
else if (t == Tile::diamondOre_Id)
|
||||
|
|
@ -286,7 +286,6 @@ bool ServerPlayerGameMode::destroyBlock(int x, int y, int z)
|
|||
int breakResult = FourKitBridge::FireBlockBreak(player->entityId, dimId, x, y, z, t, data, eventExp);
|
||||
if (breakResult < 0)
|
||||
{
|
||||
// Cancelled: send block correction to client
|
||||
player->connection->send(std::make_shared<TileUpdatePacket>(x, y, z, level));
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue