mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Stop decorative leaves from running updateTick
This commit is contained in:
1 parent
eface45071
commit
52aceddd80
2 files changed
+10
No files matched your search
@@ -12,6 +12,7 @@ package forestry.arboriculture.gadgets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.BlockNewLeaf;
|
||||
import net.minecraft.block.ITileEntityProvider;
|
||||
@@ -80,6 +81,7 @@ public class ForestryBlockLeaves extends BlockNewLeaf implements ITileEntityProv
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked","rawtypes"})
|
||||
public void getSubBlocks(Item item, CreativeTabs tab, List list) {
|
||||
|
||||
for (ITree tree : PluginArboriculture.treeInterface.getIndividualTemplates()) {
|
||||
@@ -185,6 +187,13 @@ public class ForestryBlockLeaves extends BlockNewLeaf implements ITileEntityProv
|
||||
super.beginLeavesDecay(world, x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTick(World world, int x, int y, int z, Random random) {
|
||||
if (getLeafTile(world, x, y, z).isDecorative())
|
||||
return;
|
||||
super.updateTick(world, x, y, z, random);
|
||||
}
|
||||
|
||||
/* RENDERING */
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
|
||||
@@ -89,6 +89,7 @@ public class PluginStorage extends ForestryPlugin implements IOreDictionaryHandl
|
||||
Configuration config;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"unchecked","rawtypes"})
|
||||
public void preInit() {
|
||||
BackpackManager.backpackInterface = new BackpackHelper();
|
||||
|
||||
|
||||
Reference in new issue
Block a user