Add latest test profile

This commit is contained in:
Phoenix616 2020-07-08 21:38:54 +01:00
parent d1f6b1616b
commit 6a34054bc7
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
3 changed files with 23 additions and 3 deletions

18
pom.xml
View File

@ -483,6 +483,24 @@
</build>
</profile>
<profile>
<id>latest</id>
<repositories>
<repository>
<id>paper-repo</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.16.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>static_build_number</id>
<activation>

View File

@ -42,7 +42,6 @@ public class AdminInventory implements Inventory {
maxStackSize = i;
}
@Override
public String getName() {
return "Admin inventory";
}
@ -211,7 +210,6 @@ public class AdminInventory implements Inventory {
return new ArrayList<>();
}
@Override
public String getTitle() {
return "Admin inventory";
}
@ -226,6 +224,10 @@ public class AdminInventory implements Inventory {
return null;
}
public InventoryHolder getHolder(boolean useSnapshot) {
return null;
}
@Override
public ListIterator<ItemStack> iterator() {
return Arrays.asList(content).listIterator();

View File

@ -73,7 +73,7 @@ public class PlayerInteract implements Listener {
return;
}
if (!isSign(block) || player.getInventory().getItemInMainHand().getType() == Material.SIGN) // Blocking accidental sign edition
if (!isSign(block) || player.getInventory().getItemInMainHand().getType().name().contains("SIGN")) // Blocking accidental sign edition
return;
Sign sign = (Sign) block.getState();