Commit ca318696 by Jonathan Thomas

Fixing friendship setting logic to allow attacks when friendship drops to 0 (neutral).

parent d849d7a2
......@@ -257,7 +257,7 @@ public class ChatDataManager {
if (new_friendship > 0) {
// positive friendship (apply friend goal)
((LivingEntityInterface)entity).setCanTargetPlayers(false);
} else if (new_friendship < 0) {
} else if (new_friendship <= 0) {
// negative friendship (remove friend goal)
((LivingEntityInterface)entity).setCanTargetPlayers(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment