mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Nuke FakePlayer
This commit is contained in:
@@ -34,7 +34,6 @@ import com.github.devotedmc.hiddenore.ToolConfig;
|
||||
import com.github.devotedmc.hiddenore.VeinConfig;
|
||||
import com.github.devotedmc.hiddenore.events.HiddenOreEvent;
|
||||
import com.github.devotedmc.hiddenore.events.HiddenOreGenerateEvent;
|
||||
import com.github.devotedmc.hiddenore.util.FakePlayer;
|
||||
|
||||
/**
|
||||
* Heart of ore generation, handles breaks.
|
||||
@@ -64,9 +63,11 @@ public class BlockBreakListener implements Listener {
|
||||
}
|
||||
|
||||
public static void spoofBlockBreak(Location playerLoc, Block block, ItemStack inHand) {
|
||||
HiddenOre.getPlugin().getBreakListener().doBlockBreak(
|
||||
new BlockBreakEvent(block, new FakePlayer(playerLoc, inHand))
|
||||
);
|
||||
throw new UnsupportedOperationException("FakePlayer has been deleted because it's too much of a hassle." +
|
||||
"Re-add it and uncomment the code in this function to get ore dusting.");
|
||||
// HiddenOre.getPlugin().getBreakListener().doBlockBreak(
|
||||
// new BlockBreakEvent(block, new FakePlayer(playerLoc, inHand))
|
||||
// );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user