mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-17 02:31:19 +01:00
Add latest test profile
This commit is contained in:
parent
d1f6b1616b
commit
6a34054bc7
18
pom.xml
18
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user