mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-09-30 00:27:30 +02:00
Fix /dxl break; resolves #1011
This commit is contained in:
parent
d130190d41
commit
475abcc304
@ -294,7 +294,7 @@ public class DPortal extends GlobalProtection {
|
||||
|
||||
@Override
|
||||
public void delete() {
|
||||
protections.removeProtection(this);
|
||||
plugin.getGlobalProtectionCache().removeProtection(this);
|
||||
|
||||
if (block1 == null || block2 == null) {
|
||||
return;
|
||||
|
@ -32,7 +32,6 @@ import org.bukkit.configuration.ConfigurationSection;
|
||||
public abstract class GlobalProtection {
|
||||
|
||||
protected DungeonsXL plugin;
|
||||
protected GlobalProtectionCache protections;
|
||||
|
||||
public static final String SIGN_TAG = "[DXL]";
|
||||
|
||||
@ -41,7 +40,6 @@ public abstract class GlobalProtection {
|
||||
|
||||
protected GlobalProtection(DungeonsXL plugin, World world, int id) {
|
||||
this.plugin = plugin;
|
||||
protections = plugin.getGlobalProtectionCache();
|
||||
|
||||
this.world = world.getName();
|
||||
this.id = id;
|
||||
@ -66,7 +64,7 @@ public abstract class GlobalProtection {
|
||||
* Delete this protection.
|
||||
*/
|
||||
public void delete() {
|
||||
protections.removeProtection(this);
|
||||
plugin.getGlobalProtectionCache().removeProtection(this);
|
||||
}
|
||||
|
||||
public boolean onBreak(DGlobalPlayer dPlayer) {
|
||||
|
Loading…
Reference in New Issue
Block a user