Update to Caliburn 0.5.5

This commit is contained in:
Daniel Saukel 2019-06-14 21:57:48 +02:00
parent 16084f45f8
commit 2140157237
6 changed files with 11 additions and 21 deletions

View File

@ -1,6 +1,6 @@
![DungeonsXL](http://feuerstern.bplaced.net/ressourcen/logos/DungeonsXL.png)
[![Builds](http://feuerstern.bplaced.net/ressourcen/buttons/Builds.png)](http://erethon.de/repo/de/erethon/dungeonsxl)
[![Builds](http://feuerstern.bplaced.net/ressourcen/buttons/Builds.png)](http://erethon.de/repo/de/erethon/dungeonsxl/dungeonsxl-dist)
[![Wiki](http://feuerstern.bplaced.net/ressourcen/buttons/Wiki.png)](../../wiki/)
[![Issues](http://feuerstern.bplaced.net/ressourcen/buttons/Issues.png)](../../issues/)
[![JavaDocs](http://feuerstern.bplaced.net/ressourcen/buttons/JavaDocs.png)](http://erethon.de/javadocs/dungeonsxl/)

View File

@ -222,7 +222,7 @@ public abstract class JoinSign extends GlobalProtection {
int verticalSigns = (int) Math.ceil((float) (1 + maxElements) / 4);
while (verticalSigns > 1) {
Block block = world.getBlockAt(x, y - verticalSigns + 1, z);
block.setType(VanillaItem.WALL_SIGN.getMaterial(), false);
block.setType(startSign.getType(), false);
DungeonsXL.BLOCK_ADAPTER.setFacing(block, facing);
verticalSigns--;
}

View File

@ -17,6 +17,7 @@
package de.erethon.dungeonsxl.world;
import de.erethon.caliburn.CaliburnAPI;
import de.erethon.caliburn.category.Category;
import de.erethon.caliburn.item.VanillaItem;
import de.erethon.caliburn.mob.ExMob;
import de.erethon.dungeonsxl.DungeonsXL;
@ -163,10 +164,11 @@ public class DWorldListener implements Listener {
}
}
// TODO: Is this necessary?
@EventHandler
public void onItemSpawn(ItemSpawnEvent event) {
if (DGameWorld.getByWorld(event.getLocation().getWorld()) != null) {
if (VanillaItem.SIGN.is(event.getEntity().getItemStack())) {
if (Category.SIGNS.containsItem(event.getEntity().getItemStack())) {
event.setCancelled(true);
}
}

View File

@ -206,7 +206,7 @@ public class RewardChest extends GameBlock {
}
}
if (name == null) {
name = VanillaItem.get(itemStack.getType()).getNewName().replace("_", " ");
name = VanillaItem.get(itemStack.getType()).getName().replace("_", " ");
}
msg += ChatColor.RED + " " + itemStack.getAmount() + " " + name + ChatColor.GOLD + ",";
}

20
dist/pom.xml vendored
View File

@ -36,6 +36,10 @@
<pattern>de.erethon.commons</pattern>
<shadedPattern>de.erethon.dungeonsxl.util.commons</shadedPattern>
</relocation>
<relocation>
<pattern>de.erethon.caliburn.util.compatibility</pattern>
<shadedPattern>de.erethon.dungeonsxl.util.commons.compatibility</shadedPattern>
</relocation>
<relocation>
<pattern>de.erethon.vignette</pattern>
<shadedPattern>de.erethon.dungeonsxl.util.vignette</shadedPattern>
@ -53,21 +57,5 @@
<artifactId>dungeonsxl-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>de.erethon</groupId>
<artifactId>caliburn</artifactId>
<version>0.5.4</version>
</dependency>
<dependency>
<groupId>de.erethon.vignette</groupId>
<artifactId>vignette-dist</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>de.erethon.commons</groupId>
<artifactId>commons-dist</artifactId>
<version>6.0</version>
</dependency>
</dependencies>
</project>

View File

@ -30,7 +30,7 @@
<dependency>
<groupId>de.erethon</groupId>
<artifactId>caliburn</artifactId>
<version>0.5.4</version>
<version>0.5.5</version>
<scope>compile</scope>
</dependency>
<dependency>