Add magma blocks to the things wolves avoid

This commit is contained in:
nossr50 2021-03-05 14:03:31 -08:00
parent 5baccd626f
commit a425ebcd10
4 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Version 2.1.177
Environmentally aware will now protect Wolves from Magma blocks
Version 2.1.176
Another fix for Double Smelt bringing item stack size to illegal values

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.176</version>
<version>2.1.177-SNAPSHOT</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>

View File

@ -573,6 +573,7 @@ public class EntityListener implements Listener {
switch (cause) {
case CONTACT:
case FIRE:
case HOT_FLOOR:
case LAVA:
if (tamingManager.canUseEnvironmentallyAware()) {
tamingManager.processEnvironmentallyAware(wolf, event.getDamage());

View File

@ -261,7 +261,7 @@ public class TamingManager extends SkillManager {
player.sendMessage(message);
}
public void processEnvironmentallyAware(Wolf wolf, double damage) {
public void processEnvironmentallyAware(@NotNull Wolf wolf, double damage) {
if (damage > wolf.getHealth()) {
return;
}