Don't set double drop if result is already a full stack (#4263)

Thanks, merging because I can't think of anything bad that would result from this change.
This commit is contained in:
Frank van der Heijden 2020-08-17 23:21:09 +02:00 committed by GitHub
parent a2f2614b10
commit dca2661ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ public class SmeltingManager extends SkillManager {
applyXpGain(Smelting.getResourceXp(smelting), XPGainReason.PVE, XPGainSource.PASSIVE);
if (Config.getInstance().getDoubleDropsEnabled(PrimarySkillType.SMELTING, result.getType())
&& isSecondSmeltSuccessful()) {
&& isSecondSmeltSuccessful() && result.getAmount() < 64) {
ItemStack newResult = result.clone();
newResult.setAmount(result.getAmount() + 1);