mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Ignore invalid properties
This commit is contained in:
parent
ced4fed9db
commit
db65e96700
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.world.block;
|
package com.sk89q.worldedit.world.block;
|
||||||
|
|
||||||
|
import com.boydti.fawe.Fawe;
|
||||||
import com.boydti.fawe.object.string.MutableCharSequence;
|
import com.boydti.fawe.object.string.MutableCharSequence;
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
@ -132,9 +133,13 @@ public class BlockState implements BlockStateHolder<BlockState> {
|
|||||||
switch (c) {
|
switch (c) {
|
||||||
case ']':
|
case ']':
|
||||||
case ',': {
|
case ',': {
|
||||||
|
if (property != null) {
|
||||||
charSequence.setSubstring(last, i);
|
charSequence.setSubstring(last, i);
|
||||||
int index = property.getIndexFor(charSequence);
|
int index = property.getIndexFor(charSequence);
|
||||||
stateId = property.modifyIndex(stateId, index);
|
stateId = property.modifyIndex(stateId, index);
|
||||||
|
} else {
|
||||||
|
Fawe.debug("Invalid property " + type + " | " + charSequence);
|
||||||
|
}
|
||||||
last = i + 1;
|
last = i + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user