Fix pathfinding on spotlights

This commit is contained in:
abel1502 2025-06-22 01:37:13 +03:00
parent 03693e7c0a
commit 466f12e6e2
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -44,7 +44,7 @@ public class Spotlight extends Block implements ISpotlight, INBTTransformable {
this.type = type;
this.isOn = isOn;
this.setHardness(1F);
this.setHardness(0.5F);
if(isOn) setLightLevel(1.0F);
}
@ -81,6 +81,11 @@ public class Spotlight extends Block implements ISpotlight, INBTTransformable {
return false;
}
@Override
public boolean getBlocksMovement(IBlockAccess world, int x, int y, int z) {
return false;
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) {
return null;