Potentially fix biome parsing

This commit is contained in:
Jesse Boyd 2018-08-22 00:43:30 +10:00
parent 16e7a90802
commit 83e818d1c9
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -20,6 +20,7 @@
package com.sk89q.worldedit.internal.command;
import com.boydti.fawe.object.FawePlayer;
import com.boydti.fawe.util.MathMan;
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.IncompleteRegionException;
import com.sk89q.worldedit.LocalSession;
@ -322,6 +323,8 @@ public class WorldEditBinding extends BindingHelper {
public BaseBiome getBiomeType(ArgumentStack context) throws ParameterException, WorldEditException {
String input = context.next();
if (input != null) {
if (MathMan.isInteger(input)) return new BaseBiome(Integer.parseInt(input));
Actor actor = context.getContext().getLocals().get(Actor.class);
World world;
if (actor instanceof Entity) {