mirror of
https://github.com/SydMontague/ImageMaps.git
synced 2024-10-31 16:00:00 +01:00
Fix error when interacting with entities in <1.17 versions
This commit is contained in:
parent
b1216b016f
commit
67ed74b006
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.craftcitizen</groupId>
|
<groupId>net.craftcitizen</groupId>
|
||||||
<artifactId>imagemaps</artifactId>
|
<artifactId>imagemaps</artifactId>
|
||||||
<version>1.0.9</version>
|
<version>1.0.10</version>
|
||||||
<name>ImageMaps</name>
|
<name>ImageMaps</name>
|
||||||
<description>Render Images onto maps!</description>
|
<description>Render Images onto maps!</description>
|
||||||
|
|
||||||
|
@ -102,7 +102,8 @@ public class ImageMaps extends JavaPlugin implements Listener {
|
|||||||
if (!isInvisibilitySupported())
|
if (!isInvisibilitySupported())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (event.getRightClicked().getType() != EntityType.ITEM_FRAME && event.getRightClicked().getType() != EntityType.GLOW_ITEM_FRAME)
|
if (event.getRightClicked().getType() != EntityType.ITEM_FRAME &&
|
||||||
|
(!isGlowingSupported() || event.getRightClicked().getType() != EntityType.GLOW_ITEM_FRAME))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ItemFrame frame = (ItemFrame) event.getRightClicked();
|
ItemFrame frame = (ItemFrame) event.getRightClicked();
|
||||||
|
Loading…
Reference in New Issue
Block a user