Fixed decaying leaves after rollback

This commit is contained in:
Robin Kupper
2011-06-25 14:20:35 +02:00
parent 859307f3ea
commit 2bddffb293

View File

@@ -185,7 +185,8 @@ public class WorldEditor implements Runnable
return PerformResult.SUCCESS;
if (!secBlock.setTypeIdAndData(curtype, (byte)(blockData ^ 8), true))
return PerformResult.ERROR;
}
} else if (curtype == 18 && (block.getData() & 8) > 0)
block.setData((byte)(block.getData() & 0xF7));
return PerformResult.SUCCESS;
} catch (final Exception ex) {
log.severe("[LogBlock Rollback] " + ex.toString());