mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix #444 Upper half slabs render incorrectly
This commit is contained in:
1 parent
b41646540c
commit
4c72917c05
1 file changed
+1
-1
@@ -113,7 +113,7 @@ public class BlockSlab extends net.minecraft.block.BlockSlab implements IWoodTyp
|
||||
|
||||
@Override
|
||||
public WoodType getWoodType(int meta) {
|
||||
int woodOrdinal = meta + cat.ordinal() * slabsPerCat;
|
||||
int woodOrdinal = (meta % slabsPerCat) + cat.ordinal() * slabsPerCat;
|
||||
if(woodOrdinal < WoodType.VALUES.length)
|
||||
return WoodType.VALUES[woodOrdinal];
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user