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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user