mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2025-02-25 16:01:23 +01:00
Merge branch 'development'
This commit is contained in:
commit
d8412487f6
4
pom.xml
4
pom.xml
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user