mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Fix #1094 Leaves crash. Split decorative leaves into their own block
This commit is contained in:
1 parent
ea64436f28
commit
43cf636096
34 files changed
+733
-338
No files matched your search
@@ -87,6 +87,11 @@ public class FruitProviderNone implements IFruitProvider {
|
||||
return 0xffffff;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDecorativeColor() {
|
||||
return 0xffffff;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean markAsFruitLeaf(ITreeGenome genome, World world, BlockPos pos) {
|
||||
return false;
|
||||
@@ -120,7 +125,16 @@ public class FruitProviderNone implements IFruitProvider {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public short getDecorativeSpriteIndex() {
|
||||
if (overlay != null) {
|
||||
return overlay.texUID;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerSprites() {
|
||||
if (overlay != null) {
|
||||
|
||||
Reference in new issue
Block a user