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:
parent
dfaa90a053
commit
b99b396902
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user