3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-16 13:01:24 +02:00

Added in a valid block ID check in EditSession.rawSetBlock().

Dieser Commit ist enthalten in:
sk89q 2011-01-29 09:49:17 -08:00
Ursprung a8c0b7c3d4
Commit b78d43d95c

Datei anzeigen

@ -143,11 +143,17 @@ public class EditSession {
*/
protected boolean rawSetBlock(Vector pt, BaseBlock block) {
int y = pt.getBlockY();
int type = block.getType();
if (y < 0 || y > 127) {
return false;
}
// No invalid blocks
if ((type > 25 && type < 35) || type == 36 || type > 92) {
return false;
}
int existing = world.getBlockType(pt);
// Clear the container block so that it doesn't drop items