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
|
Version 2.1.176
|
||||||
Another fix for Double Smelt bringing item stack size to illegal values
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.176</version>
|
<version>2.1.177-SNAPSHOT</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -573,6 +573,7 @@ public class EntityListener implements Listener {
|
|||||||
switch (cause) {
|
switch (cause) {
|
||||||
case CONTACT:
|
case CONTACT:
|
||||||
case FIRE:
|
case FIRE:
|
||||||
|
case HOT_FLOOR:
|
||||||
case LAVA:
|
case LAVA:
|
||||||
if (tamingManager.canUseEnvironmentallyAware()) {
|
if (tamingManager.canUseEnvironmentallyAware()) {
|
||||||
tamingManager.processEnvironmentallyAware(wolf, event.getDamage());
|
tamingManager.processEnvironmentallyAware(wolf, event.getDamage());
|
||||||
|
@ -261,7 +261,7 @@ public class TamingManager extends SkillManager {
|
|||||||
player.sendMessage(message);
|
player.sendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void processEnvironmentallyAware(Wolf wolf, double damage) {
|
public void processEnvironmentallyAware(@NotNull Wolf wolf, double damage) {
|
||||||
if (damage > wolf.getHealth()) {
|
if (damage > wolf.getHealth()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user