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
This commit is contained in:
Fireblade
2026-07-18 19:01:12 -04:00
parent 338b1b2dd9
commit 1011c714c4
5 changed files with 10 additions and 2 deletions
+6
View File
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "net.minecraft.world.level.h"
#include "net.minecraft.world.phys.h"
#include "Material.h"
#include "IconRegister.h"
#include "Facing.h"
@@ -24,6 +25,11 @@ bool GrassPathTile::isCubeShaped()
return false;
}
AABB *GrassPathTile::getAABB(Level *level, int x, int y, int z)
{
return AABB::newTemp(x + 0, y + 0, z + 0, x + 1, y + 1, z + 1);
}
void GrassPathTile::registerIcons(IconRegister *iconRegister)
{
iconTop = iconRegister->registerIcon(L"grass_path_top");