fix allowPermanentBlockBreakExploits config
This commit is contained in:
@@ -1252,12 +1252,12 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||
|
||||
// Paper start - missing entity api
|
||||
@Override
|
||||
public boolean isInvisible() { // Paper - moved up from LivingEntity
|
||||
public boolean isInvisible() { // Paper - moved up from LivingEntity
|
||||
return this.getHandle().isInvisible();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInvisible(boolean invisible) { // Paper - moved up from LivingEntity
|
||||
public void setInvisible(boolean invisible) { // Paper - moved up from LivingEntity
|
||||
this.getHandle().persistentInvisibility = invisible;
|
||||
this.getHandle().setSharedFlag(Entity.FLAG_INVISIBLE, invisible);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class CraftAsyncTask extends CraftTask {
|
||||
// Paper start - name threads according to running plugin
|
||||
final String nameBefore = thread.getName();
|
||||
thread.setName(nameBefore + " - " + this.getOwner().getName());
|
||||
try { synchronized (this.workers) { // Paper end - name threads according to running plugin
|
||||
try { synchronized (this.workers) { // Paper end - name threads according to running plugin
|
||||
if (this.getPeriod() == CraftTask.CANCEL) {
|
||||
// Never continue running after cancelled.
|
||||
// Checking this with the lock is important!
|
||||
|
||||
Reference in New Issue
Block a user