mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Add magma blocks to the things wolves avoid
This commit is contained in:
parent
5baccd626f
commit
a425ebcd10
@ -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
|
||||
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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());
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user