mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-01-28 00:15:59 +00:00
fix deepsource problems
This commit is contained in:
@@ -91,12 +91,10 @@ public class PlayerFish implements Listener {
|
||||
toolStats.logger.warning(fishingRod + " does NOT have any meta! Unable to update stats.");
|
||||
return;
|
||||
}
|
||||
Integer fishCaught;
|
||||
Integer fishCaught = 0;
|
||||
PersistentDataContainer container = meta.getPersistentDataContainer();
|
||||
if (container.has(toolStats.fishingRodCaught, PersistentDataType.INTEGER)) {
|
||||
fishCaught = container.get(toolStats.fishingRodCaught, PersistentDataType.INTEGER);
|
||||
} else {
|
||||
fishCaught = 0;
|
||||
}
|
||||
|
||||
if (fishCaught == null) {
|
||||
|
||||
Reference in New Issue
Block a user