Files
LegacyRenouveau/Minecraft.World/ShovelItem.h
T
Fireblade 1011c714c4 fix: grass path
fixes:
- grass path not being on the shovel's diggable list, hence the slow breaking speed whilst mining the block
- grass path AABB collisions, creating a discrepency between farmland + the grass path tile where the former could walk up more tiles than the latter
2026-07-18 19:01:12 -04:00

16 lines
451 B
C++

#pragma once
#include "DiggerItem.h"
#define SHOVEL_DIGGABLES 11
class ShovelItem : public DiggerItem
{
private:
static TileArray *diggables;
public:
static void staticCtor();
ShovelItem(int id, const Tier *tier);
bool useOn(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly) override;
bool canDestroySpecial(Tile *tile);
};