Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.modnmetl</groupId>
<artifactId>virtualrealty</artifactId>
<version>2.8.1</version>
<version>2.8.2</version>
<packaging>jar</packaging>

<description>A plot creation and management plugin for Minecraft</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public void onPlotItemDraft(PlayerInteractEvent e) {
}
PlayerInventory inv = player.getInventory();
ItemStack claimItem = VirtualRealty.legacyVersion ? player.getItemInHand() : inv.getItemInMainHand();

if (claimItem == null || claimItem.getType() == Material.AIR) return;
String item = NBT.get(claimItem, nbt -> {
return nbt.getString("vrplot_item");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void onPlayerDeath(PlayerDeathEvent e) {
public void onBlockPlace(BlockPlaceEvent e) {
Player player = e.getPlayer();
ItemStack itemInHand = VirtualRealty.legacyVersion ? player.getItemInHand() : player.getInventory().getItemInMainHand();
if (itemInHand == null || itemInHand.getType() == Material.AIR) return;
boolean hasItemKey = NBT.get(itemInHand, nbt -> {
return nbt.hasTag("vrplot_item");
});
Expand Down