forked from LogBlock/LogBlock
Fixed decaying leaves after rollback
This commit is contained in:
@@ -185,7 +185,8 @@ public class WorldEditor implements Runnable
|
|||||||
return PerformResult.SUCCESS;
|
return PerformResult.SUCCESS;
|
||||||
if (!secBlock.setTypeIdAndData(curtype, (byte)(blockData ^ 8), true))
|
if (!secBlock.setTypeIdAndData(curtype, (byte)(blockData ^ 8), true))
|
||||||
return PerformResult.ERROR;
|
return PerformResult.ERROR;
|
||||||
}
|
} else if (curtype == 18 && (block.getData() & 8) > 0)
|
||||||
|
block.setData((byte)(block.getData() & 0xF7));
|
||||||
return PerformResult.SUCCESS;
|
return PerformResult.SUCCESS;
|
||||||
} catch (final Exception ex) {
|
} catch (final Exception ex) {
|
||||||
log.severe("[LogBlock Rollback] " + ex.toString());
|
log.severe("[LogBlock Rollback] " + ex.toString());
|
||||||
|
Reference in New Issue
Block a user