TU19: merge Minecraft.Client/GameState
This commit is contained in:
1 parent
d9aa793075
commit
1c12bedc86
7 files changed
+127
-86
No files matched your search
@@ -3,8 +3,6 @@
|
||||
#include "DemoMode.h"
|
||||
#include "../Rendering/LevelRenderer.h"
|
||||
#include "../Player/LocalPlayer.h"
|
||||
#include "../Level/MultiPlayerLevel.h"
|
||||
#include "../Player/MultiPlayerLocalPlayer.h"
|
||||
#include "../../Minecraft.World/Headers/net.minecraft.world.level.h"
|
||||
#include "../../Minecraft.World/Headers/net.minecraft.world.level.tile.h"
|
||||
#include "../../Minecraft.World/Headers/net.minecraft.world.entity.player.h"
|
||||
@@ -58,7 +56,7 @@ bool SurvivalMode::destroyBlock(int x, int y, int z, int face) {
|
||||
std::shared_ptr<ItemInstance> item = minecraft->player->getSelectedItem();
|
||||
bool couldDestroy = minecraft->player->canDestroy(Tile::tiles[t]);
|
||||
if (item != NULL) {
|
||||
item->mineBlock(minecraft->level, t, x, y, z, minecraft->player);
|
||||
item->mineBlock(t, x, y, z, minecraft->player);
|
||||
if (item->count == 0) {
|
||||
minecraft->player->removeSelectedItem();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user