mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-01-03 21:28:22 +00:00
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:
parent
cb7e1ef91c
commit
22c7610259
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue