mirror of
https://github.com/chuushi/PhantomSMP.git
synced 2024-11-22 01:56:09 +01:00
Remove debug code + Unset phantom target on death/bed usage as opposed to removing them
This commit is contained in:
parent
983aa2a3df
commit
728493b9c7
@ -89,8 +89,6 @@ public class PhantomSMP extends JavaPlugin {
|
||||
|
||||
// Player rested before
|
||||
if (!phantomSpawnAllowed(p)) {
|
||||
getLogger().info("Removed illegally targeting phantom");
|
||||
Thread.dumpStack();
|
||||
if (e != null)
|
||||
e.setCancelled(true);
|
||||
// TODO: Quesiton: Also remove the phantom?
|
||||
@ -119,7 +117,7 @@ public class PhantomSMP extends JavaPlugin {
|
||||
Phantom phantom = i.next();
|
||||
if (phantom.getTarget() == p) {
|
||||
phantomPlayerMap.remove(phantom);
|
||||
phantom.remove();
|
||||
phantom.setTarget(null);
|
||||
}
|
||||
i.remove();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user