Minor changes, whatever
This commit is contained in:
parent
9c44f3daec
commit
84d77f2f25
@ -133,6 +133,6 @@ public class DiscoParty {
|
|||||||
updater.cancel();
|
updater.cancel();
|
||||||
}
|
}
|
||||||
updater = null;
|
updater = null;
|
||||||
ds.getParties().remove(this.player.getName());
|
ds.getPartyMap().remove(this.player.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,8 @@ public class SheepDeshearer implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onCreatureSpawn(CreatureSpawnEvent e) {
|
public void onCreatureSpawn(CreatureSpawnEvent e) {
|
||||||
if(e.getEntity() instanceof Sheep && e.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.BREEDING)){
|
if (e.getEntity() instanceof Sheep &&
|
||||||
|
e.getSpawnReason().equals(CreatureSpawnEvent.SpawnReason.BREEDING)) {
|
||||||
for (DiscoParty party : parent.getParties()) {
|
for (DiscoParty party : parent.getParties()) {
|
||||||
if (party.getSheep().contains((Sheep) e.getEntity())) {
|
if (party.getSheep().contains((Sheep) e.getEntity())) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user