<commit_before>package com.gmail.nossr50.skills.smelting;

import org.bukkit.event.inventory.FurnaceBurnEvent;

public class FuelEfficiencyEventHandler {
    private SmeltingManager manager;
    private FurnaceBurnEvent event;
    private double burnModifier;

    protected FuelEfficiencyEventHandler(SmeltingManager manager, FurnaceBurnEvent event) {
        this.manager = manager;
        this.event = event;
    }

    protected void calculateBurnModifier() {
        this.burnModifier = 1 + ((manager.getSkillLevel() / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier);
    }

    protected void modifyBurnTime() {
        int burnTime = event.getBurnTime();
        event.setBurnTime((int)(burnTime * burnModifier));
    }
}<commit_msg>One of these has to be a double if we want this modifier to work.<commit_after>package com.gmail.nossr50.skills.smelting;

import org.bukkit.event.inventory.FurnaceBurnEvent;

public class FuelEfficiencyEventHandler {
    private SmeltingManager manager;
    private FurnaceBurnEvent event;
    private double burnModifier;

    protected FuelEfficiencyEventHandler(SmeltingManager manager, FurnaceBurnEvent event) {
        this.manager = manager;
        this.event = event;
    }

    protected void calculateBurnModifier() {
        this.burnModifier = 1 + (((double) manager.getSkillLevel() / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier);
    }

    protected void modifyBurnTime() {
        int burnTime = event.getBurnTime();
        event.setBurnTime((int)(burnTime * burnModifier));
    }
}
{'fraction_non_alphanumeric': 0.0859325270528326, 'fraction_numerical': 0.0038192234245703373, 'mean_word_length': 3.836923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5566470', 'n_tokens_mistral': 474, 'n_tokens_neox': 449, 'n_words': 97}