1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Block ownership fix #2

This commit is contained in:
Zrips 2021-09-15 13:52:28 +03:00
parent 7f933b5e35
commit 06f59f70cc
2 changed files with 3 additions and 6 deletions

View File

@ -23,7 +23,6 @@ import com.gamingmesh.jobs.stuff.blockLoc;
import net.Zrips.CMILib.Container.CMILocation; import net.Zrips.CMILib.Container.CMILocation;
import net.Zrips.CMILib.Items.CMIMaterial; import net.Zrips.CMILib.Items.CMIMaterial;
import net.Zrips.CMILib.Logs.CMIDebug;
public class BlockOwnerShip { public class BlockOwnerShip {
@ -184,7 +183,6 @@ public class BlockOwnerShip {
blockLoc bl = new blockLoc(loc); blockLoc bl = new blockLoc(loc);
Map<String, UUID> record = ownerMapByLocation.get(bl.getWorldName()); Map<String, UUID> record = ownerMapByLocation.get(bl.getWorldName());
if (record == null) { if (record == null) {
CMIDebug.d("first null");
return null; return null;
} }
return record.get(bl.toVectorString()); return record.get(bl.toVectorString());

View File

@ -18,7 +18,6 @@
package com.gamingmesh.jobs.listeners; package com.gamingmesh.jobs.listeners;
import java.util.HashMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -30,7 +29,6 @@ import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.BrewingStand; import org.bukkit.block.BrewingStand;
import org.bukkit.block.Furnace; import org.bukkit.block.Furnace;
import org.bukkit.block.data.Ageable; import org.bukkit.block.data.Ageable;
@ -127,7 +125,6 @@ import net.Zrips.CMILib.Container.CMILocation;
import net.Zrips.CMILib.Entities.CMIEntityType; import net.Zrips.CMILib.Entities.CMIEntityType;
import net.Zrips.CMILib.Items.CMIItemStack; import net.Zrips.CMILib.Items.CMIItemStack;
import net.Zrips.CMILib.Items.CMIMaterial; import net.Zrips.CMILib.Items.CMIMaterial;
import net.Zrips.CMILib.Logs.CMIDebug;
import net.Zrips.CMILib.Version.Version; import net.Zrips.CMILib.Version.Version;
public final class JobsPaymentListener implements Listener { public final class JobsPaymentListener implements Listener {
@ -1099,7 +1096,9 @@ public final class JobsPaymentListener implements Listener {
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
return; return;
} }
} else }
if (uuid == null)
return; return;
Player player = Bukkit.getPlayer(uuid); Player player = Bukkit.getPlayer(uuid);