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