mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Generic code cleanup
This commit is contained in:
1 parent
332d9c4f18
commit
09aa37fe4a
57 files changed
+415
-344
No files matched your search
@@ -103,7 +103,7 @@ public class ItemInWorldManager {
|
||||
|
||||
public boolean d(int i, int j, int k) {
|
||||
// CraftBukkit start
|
||||
if (this.a instanceof EntityPlayer){
|
||||
if (this.a instanceof EntityPlayer) {
|
||||
CraftServer server = ((WorldServer) this.b).getServer();
|
||||
org.bukkit.block.Block block = ((WorldServer) this.b).getWorld().getBlockAt(i, j, k);
|
||||
org.bukkit.entity.Player player = (org.bukkit.entity.Player) this.a.getBukkitEntity();
|
||||
@@ -111,7 +111,7 @@ public class ItemInWorldManager {
|
||||
BlockBreakEvent event = new BlockBreakEvent(block,player);
|
||||
server.getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()){
|
||||
if (event.isCancelled()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user