Skip to content

Commit 6be17e3

Browse files
committedSep 25, 2016
Made this a little more interesting.
1 parent f2be345 commit 6be17e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/java/pl/asie/computronics/integration/forestry/nanomachines/SwarmBehavior.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void onEnable() {
3434
@Override
3535
public void onDisable(DisableReason reason) {
3636
if(entity != null) {
37-
if(reason == DisableReason.OutOfEnergy && (player.capabilities == null || !player.capabilities.isCreativeMode)) {
37+
if(reason != DisableReason.Default && (player.capabilities == null || !player.capabilities.isCreativeMode)) {
3838
entity.setPlayer(null);
3939
entity.setAggressive(true);
4040
entity.setAttackTarget(player);

0 commit comments

Comments
 (0)
Please sign in to comment.