mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-24 00:51:31 +01:00
Update to Caliburn 0.4.4
This commit is contained in:
parent
07b68397f3
commit
bb71e8ae04
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -64,7 +64,7 @@ public class PortalCommand extends DRECommand {
|
||||
}
|
||||
|
||||
if (material == null) {
|
||||
material = VanillaItem.PORTAL;
|
||||
material = VanillaItem.NETHER_PORTAL;
|
||||
}
|
||||
|
||||
DPortal dPortal = dGlobalPlayer.getPortal();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user