Bug fix, see previous commit for details

Fix wrong message showing when creating a fixed effect where you're looking and it's out of range
This commit is contained in:
Esophose 2018-10-28 04:23:23 -06:00
parent cb7e1ef91c
commit 22c7610259

View file

@ -106,7 +106,7 @@ public class FixedCommandModule implements CommandModule {
Block targetBlock = p.getTargetBlock((Set<Material>)null, 8);
int maxDistanceSqrd = 6 * 6;
if (targetBlock.getLocation().distanceSquared(p.getLocation()) > maxDistanceSqrd) {
LangManager.sendMessage(p, Lang.FIXED_CREATE_OUT_OF_RANGE);
LangManager.sendMessage(p, Lang.FIXED_CREATE_LOOKING_TOO_FAR);
return;
}