Merge branch 'development'

This commit is contained in:
Christian Koop 2022-11-13 14:29:24 +01:00
commit d8412487f6
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.songoda</groupId>
<artifactId>EpicFurnaces</artifactId>
<version>4.9.4</version>
<version>4.9.5</version>
<name>EpicFurnaces</name>
<description>EpicFurnaces</description>
@ -125,7 +125,7 @@
<dependency>
<groupId>com.songoda</groupId>
<artifactId>SongodaCore</artifactId>
<version>2.6.16</version>
<version>2.6.17-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

View File

@ -41,7 +41,7 @@ public class InventoryListeners implements Listener {
if (event.getSlot() != 64537) {
if (event.getInventory().getType() == InventoryType.ANVIL) {
if (event.getAction() != InventoryAction.NOTHING) {
if (event.getCurrentItem().getType() != Material.AIR) {
if (event.getCurrentItem() != null && event.getCurrentItem().getType() != Material.AIR) {
ItemStack item = event.getCurrentItem();
if (item.getType().name().contains("FURNACE") && !item.getType().name().contains("SMOKER")) {
event.setCancelled(true);