mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-06-27 07:04:45 +02:00
Update src/main/java/fr/moribus/imageonmap/image/ImageRendererExecutor.java
Co-authored-by: Amaury Carrade <amaury@carrade.eu>
This commit is contained in:
parent
66af34920f
commit
19d79d2da0
|
@ -111,7 +111,7 @@ public class ImageRendererExecutor extends Worker
|
||||||
if (image == null) throw new IOException(I.t("The given URL is not a valid image"));
|
if (image == null) throw new IOException(I.t("The given URL is not a valid image"));
|
||||||
|
|
||||||
// Limits are in place and the player does NOT have rights to avoid them.
|
// Limits are in place and the player does NOT have rights to avoid them.
|
||||||
checkSizeLimit(playerUUID, image );
|
checkSizeLimit(playerUUID, image);
|
||||||
|
|
||||||
if (scaling != ImageUtils.ScalingType.NONE && height <= 1 && width <= 1)
|
if (scaling != ImageUtils.ScalingType.NONE && height <= 1 && width <= 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user