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

Merge pull request #108 from AlexLander123/fixes

Fix XP Dupe Bug
This commit is contained in:
TheBusyBiscuit 2017-01-21 08:22:33 +01:00 committed by GitHub
commit c925b9fca5

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());