mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Glow panels now break off of non-solid surfaces
This commit is contained in:
1 parent
81477966ee
commit
ef7f6e91eb
2 files changed
+22
-1
No files matched your search
@@ -37,7 +37,14 @@ public class ItemGlowPanel extends JItemMultiPart
|
||||
EnumColor col = EnumColor.DYES[item.getItemDamage()];
|
||||
ForgeDirection orientation = getSideFromVector3(vHit.subtract(Vector3.center));
|
||||
|
||||
return new PartGlowPanel(col, orientation);
|
||||
BlockCoord pos1 = pos.copy().inset(orientation.getOpposite().ordinal());
|
||||
|
||||
if(world.isSideSolid(pos1.x, pos1.y, pos1.z, orientation.getOpposite()))
|
||||
{
|
||||
return new PartGlowPanel(col, orientation);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public ForgeDirection getSideFromVector3(Vector3 vector)
|
||||
|
||||
Reference in new issue
Block a user