1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Fixed a small bug

This commit is contained in:
TheBusyBiscuit 2020-03-30 18:50:55 +02:00
parent 107483d64f
commit 7944c44c43
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@
#### Changes
#### Fixes
* Fixed error message when clicking empty slots in the Slimefun Guide
## Release Candidate 10 (28 Mar 2020)

View File

@ -506,7 +506,7 @@ public class ChestSlimefunGuide implements SlimefunGuideImplementation {
MenuClickHandler clickHandler = (pl, slot, itemstack, action) -> {
try {
if (itemstack.getType() != Material.BARRIER) {
if (itemstack != null && itemstack.getType() != Material.BARRIER) {
displayItem(profile, itemstack, 0, true);
}
}