Backport lumberaxe tree chop task from later versions

This commit is contained in:
Jason Mitchell committed 2017-12-22 10:34:32 -08:00
1 parent b99a30ccbc
commit d748363176
3 files changed
+153 -99

No files matched your search

@@ -244,7 +244,7 @@ public abstract class HarvestTool extends ToolCore
return used;
}
protected void breakExtraBlock(World world, int x, int y, int z, int sidehit, EntityPlayer playerEntity, int refX, int refY, int refZ) {
public void breakExtraBlock(World world, int x, int y, int z, int sidehit, EntityPlayer playerEntity, int refX, int refY, int refZ) {
// prevent calling that stuff for air blocks, could lead to unexpected behaviour since it fires events
if (world.isAirBlock(x, y, z))
return;