mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed WorldEdit not handling ice removal well.
This commit is contained in:
parent
b26624bc9b
commit
1767597672
@ -143,20 +143,24 @@ public class EditSession {
|
|||||||
*/
|
*/
|
||||||
private boolean rawSetBlock(Vector pt, BaseBlock block) {
|
private boolean rawSetBlock(Vector pt, BaseBlock block) {
|
||||||
int y = pt.getBlockY();
|
int y = pt.getBlockY();
|
||||||
|
|
||||||
if (y < 0 || y > 127) {
|
if (y < 0 || y > 127) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int existing = world.getBlockType(pt);
|
||||||
|
|
||||||
// Clear the chest so that it doesn't drop items
|
// Clear the chest so that it doesn't drop items
|
||||||
if (world.getBlockType(pt) == 54 && blockBag == null) {
|
if (existing == 54 && blockBag == null) {
|
||||||
world.clearChest(pt);
|
world.clearChest(pt);
|
||||||
|
// Ice turns until water so this has to be done first
|
||||||
|
} else if (existing == BlockID.ICE) {
|
||||||
|
world.setBlockType(pt, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int id = block.getID();
|
int id = block.getID();
|
||||||
|
|
||||||
if (blockBag != null) {
|
if (blockBag != null) {
|
||||||
int existing = world.getBlockType(pt);
|
|
||||||
|
|
||||||
if (id > 0) {
|
if (id > 0) {
|
||||||
try {
|
try {
|
||||||
blockBag.fetchPlacedBlock(id);
|
blockBag.fetchPlacedBlock(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user