This commit is contained in:
sylvessa 2026-03-24 21:09:25 -05:00
parent 98be92ed0c
commit def50adfcc
11 changed files with 2964 additions and 3021 deletions

View file

@ -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;
}