1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fix XP Dupe Bug

This commit is contained in:
AlexLander123 2017-01-20 23:57:19 +08:00
parent dfaa90a053
commit b99b396902

View File

@ -158,6 +158,8 @@ public class XPCollector extends SlimefunItem {
if (n instanceof ExperienceOrb) {
if (ChargableBlock.getCharge(b) < getEnergyConsumption()) return;
if (!n.isValid()) return;
int xp = getEXP(b) + ((ExperienceOrb) n).getExperience();
ChargableBlock.addCharge(b, -getEnergyConsumption());