Skip to content

Commit

Permalink
Small oversights
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wStorm committed Jun 15, 2021
1 parent 1508796 commit f66d8f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


***
Expand Down
4 changes: 2 additions & 2 deletions src/com/dre/brewery/BPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public boolean sendDrunkenessMessage(Player player) {
}
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;
}
Expand Down Expand Up @@ -615,7 +615,7 @@ public static void puke(Player player) {
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;
Expand Down
3 changes: 2 additions & 1 deletion src/com/dre/brewery/BSealer.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ public static boolean isBSealer(Block block) {
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;
Expand Down
3 changes: 2 additions & 1 deletion src/com/dre/brewery/P.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public void onEnable() {
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) {
Expand Down

0 comments on commit f66d8f9

Please sign in to comment.