Update to Caliburn 0.4.4

This commit is contained in:
Daniel Saukel 2018-07-13 23:31:15 +02:00
parent 07b68397f3
commit bb71e8ae04
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@
<dependency>
<groupId>de.erethon</groupId>
<artifactId>caliburn</artifactId>
<version>0.4.2</version>
<version>0.4.4</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -64,7 +64,7 @@ public class PortalCommand extends DRECommand {
}
if (material == null) {
material = VanillaItem.PORTAL;
material = VanillaItem.NETHER_PORTAL;
}
DPortal dPortal = dGlobalPlayer.getPortal();

View File

@ -114,9 +114,9 @@ public class RewardListener implements Listener {
return;
}
Block block = player.getLocation().getBlock();
if (dPlayer.hasRewardItemsLeft() && !VanillaItem.PORTAL.is(block.getRelative(0, 1, 0)) && !VanillaItem.PORTAL.is(block.getRelative(0, -1, 0))
&& !VanillaItem.PORTAL.is(block.getRelative(1, 0, 0)) && !VanillaItem.PORTAL.is(block.getRelative(-1, 0, 0))
&& !VanillaItem.PORTAL.is(block.getRelative(0, 0, 1)) && !VanillaItem.PORTAL.is(block.getRelative(0, 0, -1))) {
if (dPlayer.hasRewardItemsLeft() && !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, 1, 0)) && !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, -1, 0))
&& !VanillaItem.NETHER_PORTAL.is(block.getRelative(1, 0, 0)) && !VanillaItem.NETHER_PORTAL.is(block.getRelative(-1, 0, 0))
&& !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, 0, 1)) && !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, 0, -1))) {
PageGUI lootInventory = new PageGUI(DMessage.PLAYER_TREASURES.getMessage(), true);
for (ItemStack item : dPlayer.getRewardItems()) {
if (item != null) {