3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-16 04:51:22 +02:00

Fixed WorldEdit not handling ice removal well.

Dieser Commit ist enthalten in:
sk89q 2011-01-08 11:30:05 -08:00
Ursprung b26624bc9b
Commit 1767597672

Datei anzeigen

@ -143,20 +143,24 @@ public class EditSession {
*/
private boolean rawSetBlock(Vector pt, BaseBlock block) {
int y = pt.getBlockY();
if (y < 0 || y > 127) {
return false;
}
int existing = world.getBlockType(pt);
// 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);
// Ice turns until water so this has to be done first
} else if (existing == BlockID.ICE) {
world.setBlockType(pt, 0);
}
int id = block.getID();
if (blockBag != null) {
int existing = world.getBlockType(pt);
if (id > 0) {
try {
blockBag.fetchPlacedBlock(id);