We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2be345 commit 6be17e3Copy full SHA for 6be17e3
src/main/java/pl/asie/computronics/integration/forestry/nanomachines/SwarmBehavior.java
@@ -34,7 +34,7 @@ public void onEnable() {
34
@Override
35
public void onDisable(DisableReason reason) {
36
if(entity != null) {
37
- if(reason == DisableReason.OutOfEnergy && (player.capabilities == null || !player.capabilities.isCreativeMode)) {
+ if(reason != DisableReason.Default && (player.capabilities == null || !player.capabilities.isCreativeMode)) {
38
entity.setPlayer(null);
39
entity.setAggressive(true);
40
entity.setAttackTarget(player);
0 commit comments