mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fixed an exploit where Thermalilies could be broken before the cooldown period starts, skipping the cooldown entirely.
This commit is contained in:
1 parent
eb71d3b7ea
commit
41efe3f063
1 file changed
+4
@@ -142,6 +142,10 @@ public class SubTileHydroangeas extends SubTileGenerating {
|
||||
@Override
|
||||
public ArrayList<ItemStack> getDrops(ArrayList<ItemStack> list) {
|
||||
ArrayList<ItemStack> drops = super.getDrops(list);
|
||||
int cooldown = this.cooldown;
|
||||
if(burnTime > 0)
|
||||
cooldown = getCooldown();
|
||||
|
||||
if(cooldown > 0)
|
||||
ItemNBTHelper.setInt(drops.get(0), TAG_COOLDOWN, getCooldown());
|
||||
return drops;
|
||||
|
||||
Reference in new issue
Block a user