mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-03 05:51:38 +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>
|
<dependency>
|
||||||
<groupId>de.erethon</groupId>
|
<groupId>de.erethon</groupId>
|
||||||
<artifactId>caliburn</artifactId>
|
<artifactId>caliburn</artifactId>
|
||||||
<version>0.4.2</version>
|
<version>0.4.4</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -64,7 +64,7 @@ public class PortalCommand extends DRECommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (material == null) {
|
if (material == null) {
|
||||||
material = VanillaItem.PORTAL;
|
material = VanillaItem.NETHER_PORTAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPortal dPortal = dGlobalPlayer.getPortal();
|
DPortal dPortal = dGlobalPlayer.getPortal();
|
||||||
|
@ -114,9 +114,9 @@ public class RewardListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Block block = player.getLocation().getBlock();
|
Block block = player.getLocation().getBlock();
|
||||||
if (dPlayer.hasRewardItemsLeft() && !VanillaItem.PORTAL.is(block.getRelative(0, 1, 0)) && !VanillaItem.PORTAL.is(block.getRelative(0, -1, 0))
|
if (dPlayer.hasRewardItemsLeft() && !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, 1, 0)) && !VanillaItem.NETHER_PORTAL.is(block.getRelative(0, -1, 0))
|
||||||
&& !VanillaItem.PORTAL.is(block.getRelative(1, 0, 0)) && !VanillaItem.PORTAL.is(block.getRelative(-1, 0, 0))
|
&& !VanillaItem.NETHER_PORTAL.is(block.getRelative(1, 0, 0)) && !VanillaItem.NETHER_PORTAL.is(block.getRelative(-1, 0, 0))
|
||||||
&& !VanillaItem.PORTAL.is(block.getRelative(0, 0, 1)) && !VanillaItem.PORTAL.is(block.getRelative(0, 0, -1))) {
|
&& !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);
|
PageGUI lootInventory = new PageGUI(DMessage.PLAYER_TREASURES.getMessage(), true);
|
||||||
for (ItemStack item : dPlayer.getRewardItems()) {
|
for (ItemStack item : dPlayer.getRewardItems()) {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user