Small oversights

This commit is contained in:
Sn0wStorm 2021-06-15 16:45:41 +02:00
parent 1508796f96
commit f66d8f9511
4 changed files with 8 additions and 6 deletions

View File

@ -6,9 +6,9 @@
*** ***
###Find the Project Page on [Spigot](https://www.spigotmc.org/resources/brewery.3082/) or [Bukkit](https://dev.bukkit.org/projects/brewery) #### Find the Project Page on [Spigot](https://www.spigotmc.org/resources/brewery.3082/) or [Bukkit](https://dev.bukkit.org/projects/brewery)
###Also see [Wiki](https://github.com/DieReicheErethons/Brewery/wiki) | [Releases](https://github.com/DieReicheErethons/Brewery/releases) | [Changelog](https://github.com/DieReicheErethons/Brewery/wiki/changelog) | [Commits](https://github.com/DieReicheErethons/Brewery/commits/master) #### Also see [Wiki](https://github.com/DieReicheErethons/Brewery/wiki) | [Releases](https://github.com/DieReicheErethons/Brewery/releases) | [Changelog](https://github.com/DieReicheErethons/Brewery/wiki/changelog) | [Commits](https://github.com/DieReicheErethons/Brewery/commits/master)
*** ***

View File

@ -303,7 +303,7 @@ public class BPlayer {
} }
b.append("§7]"); b.append("§7]");
final String text = b.toString(); final String text = b.toString();
if (hangover) { if (hangover && P.use1_11) {
P.p.getServer().getScheduler().scheduleSyncDelayedTask(P.p, () -> player.sendTitle("", text, 30, 100, 90), 160); P.p.getServer().getScheduler().scheduleSyncDelayedTask(P.p, () -> player.sendTitle("", text, 30, 100, 90), 160);
return false; return false;
} }
@ -615,7 +615,7 @@ public class BPlayer {
Item item = player.getWorld().dropItem(loc, new ItemStack(BConfig.pukeItem)); Item item = player.getWorld().dropItem(loc, new ItemStack(BConfig.pukeItem));
item.setVelocity(direction); item.setVelocity(direction);
item.setPickupDelay(32767); // Item can never be picked up when pickup delay is 32767 item.setPickupDelay(32767); // Item can never be picked up when pickup delay is 32767
item.setMetadata("brewery_puke", new FixedMetadataValue(P.getInstance(), true)); item.setMetadata("brewery_puke", new FixedMetadataValue(P.p, true));
if (P.use1_14) item.setPersistent(false); // No need to save Puke items if (P.use1_14) item.setPersistent(false); // No need to save Puke items
int pukeDespawntime = BConfig.pukeDespawntime; int pukeDespawntime = BConfig.pukeDespawntime;

View File

@ -109,10 +109,11 @@ public class BSealer implements InventoryHolder {
if (smoker.getCustomName() != null) { if (smoker.getCustomName() != null) {
if (smoker.getCustomName().equals("§e" + P.p.languageReader.get("Etc_SealingTable"))) { if (smoker.getCustomName().equals("§e" + P.p.languageReader.get("Etc_SealingTable"))) {
return true; return true;
} else } else {
return smoker.getPersistentDataContainer().has(TAG_KEY, PersistentDataType.BYTE); return smoker.getPersistentDataContainer().has(TAG_KEY, PersistentDataType.BYTE);
} }
} }
}
return false; return false;
} }

View File

@ -174,7 +174,8 @@ public class P extends JavaPlugin {
p.getServer().getScheduler().runTaskTimer(p, new CauldronParticles(), 1, 1); p.getServer().getScheduler().runTaskTimer(p, new CauldronParticles(), 1, 1);
} }
if (BConfig.updateCheck) { // Disable Update Check for older mc versions
if (use1_14 && BConfig.updateCheck) {
try { try {
p.getServer().getScheduler().runTaskLaterAsynchronously(p, new UpdateChecker(), 135); p.getServer().getScheduler().runTaskLaterAsynchronously(p, new UpdateChecker(), 135);
} catch (Exception e) { } catch (Exception e) {