Skip to content

Commit

Permalink
Fixed xp not dropping in dims (1.16.1) Close #192
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Aug 25, 2020
1 parent 2949954 commit 8fc3d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -39,7 +39,7 @@ repositories {
}

minecraft {
mappings channel: 'snapshot', version: '20200712-1.16.1'
mappings channel: 'snapshot', version: '20200820-1.16.1'
runs {
client {
workingDirectory project.file('run')
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/com/blamejared/clumps/Clumps.java
Expand Up @@ -43,12 +43,11 @@ private void update(TickEvent.WorldTickEvent e) {
return;
}
if(e.world instanceof ServerWorld) {
ServerWorld world = (ServerWorld) e.world;
ArrayList<ExperienceOrbEntity> list = new ArrayList<>(orbs);
for(ExperienceOrbEntity entity : list) {
EntityXPOrbBig bigOrb = new EntityXPOrbBig(world, entity.getPosX(), entity.getPosY(), entity.getPosZ(), entity.xpValue);
EntityXPOrbBig bigOrb = new EntityXPOrbBig(entity.getEntityWorld(), entity.getPosX(), entity.getPosY(), entity.getPosZ(), entity.xpValue);
bigOrb.setMotion(entity.getMotion());
world.addEntity(bigOrb);
entity.getEntityWorld().addEntity(bigOrb);
entity.remove();
}
orbs.removeAll(list);
Expand Down

1 comment on commit 8fc3d38

@jaredlll08
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes our #39, can't wait till this repo hits 192 issues and this commit gets necro'd

Please sign in to comment.