mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-14 10:15:38 +01:00
Small oversights
This commit is contained in:
parent
1508796f96
commit
f66d8f9511
@ -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)
|
||||
|
||||
|
||||
***
|
||||
|
@ -303,7 +303,7 @@ public class BPlayer {
|
||||
}
|
||||
b.append("§7]");
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
@ -615,7 +615,7 @@ public class BPlayer {
|
||||
Item item = player.getWorld().dropItem(loc, new ItemStack(BConfig.pukeItem));
|
||||
item.setVelocity(direction);
|
||||
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
|
||||
|
||||
int pukeDespawntime = BConfig.pukeDespawntime;
|
||||
|
@ -109,8 +109,9 @@ public class BSealer implements InventoryHolder {
|
||||
if (smoker.getCustomName() != null) {
|
||||
if (smoker.getCustomName().equals("§e" + P.p.languageReader.get("Etc_SealingTable"))) {
|
||||
return true;
|
||||
} else
|
||||
} else {
|
||||
return smoker.getPersistentDataContainer().has(TAG_KEY, PersistentDataType.BYTE);
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -174,7 +174,8 @@ public class P extends JavaPlugin {
|
||||
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 {
|
||||
p.getServer().getScheduler().runTaskLaterAsynchronously(p, new UpdateChecker(), 135);
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user