Skip to content

Commit

Permalink
Moved EntityType to its own class to hopefully fix the unexplainable …
Browse files Browse the repository at this point in the history
…IllegalAccessErrors.
  • Loading branch information
sk89q committed May 1, 2011
1 parent 8840403 commit 7dcb4da
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/sk89q/worldedit/EntityType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.sk89q.worldedit;

/**
* List of removable entity types.
*/
public enum EntityType {
ARROWS,
ITEMS,
PAINTINGS,
BOATS,
MINECARTS,
TNT,
}
12 changes: 0 additions & 12 deletions src/main/java/com/sk89q/worldedit/LocalWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@
* @author sk89q
*/
public abstract class LocalWorld {
/**
* List of removable entity types.
*/
public enum EntityType {
ARROWS,
ITEMS,
PAINTINGS,
BOATS,
MINECARTS,
TNT,
}

/**
* Random generator.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public int killMobs(Vector origin, int radius) {
* @return
*/
@Override
public int removeEntities(EntityType type, Vector origin, int radius) {
public int removeEntities(LocalWorld.EntityType type, Vector origin, int radius) {
int num = 0;
double radiusSq = Math.pow(radius, 2);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.sk89q.minecraft.util.commands.CommandContext;
import com.sk89q.minecraft.util.commands.CommandPermissions;
import com.sk89q.worldedit.*;
import com.sk89q.worldedit.LocalWorld.EntityType;
import com.sk89q.worldedit.blocks.BaseBlock;
import com.sk89q.worldedit.patterns.*;
import com.sk89q.worldedit.regions.CuboidRegion;
Expand Down

0 comments on commit 7dcb4da

Please sign in to comment.