Fix #1094 Leaves crash. Split decorative leaves into their own block

This commit is contained in:
mezz committed 2016-03-10 03:34:57 -08:00
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) {