mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-19 23:01:35 +01:00
Fix MutableEntityChange error
This commit is contained in:
parent
59ab56bdd7
commit
de26c22f05
@ -95,7 +95,12 @@ public class MutableEntityChange implements Change {
|
|||||||
|
|
||||||
public void perform(FaweQueue queue) {
|
public void perform(FaweQueue queue) {
|
||||||
Map<String, Tag> map = tag.getValue();
|
Map<String, Tag> map = tag.getValue();
|
||||||
List<DoubleTag> pos = (List<DoubleTag>) map.get("Pos").getValue();
|
Tag posTag = map.get("Pos");
|
||||||
|
if (posTag == null) {
|
||||||
|
Fawe.debug("Missing pos tag: " + tag);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
List<DoubleTag> pos = (List<DoubleTag>) posTag.getValue();
|
||||||
int x = (int) Math.round(pos.get(0).getValue());
|
int x = (int) Math.round(pos.get(0).getValue());
|
||||||
int y = (int) Math.round(pos.get(1).getValue());
|
int y = (int) Math.round(pos.get(1).getValue());
|
||||||
int z = (int) Math.round(pos.get(2).getValue());
|
int z = (int) Math.round(pos.get(2).getValue());
|
||||||
|
Loading…
Reference in New Issue
Block a user