Skip to content

Commit

Permalink
fix: incorrect option used for some special items
Browse files Browse the repository at this point in the history
ported from 03c895c
  • Loading branch information
Misat11 committed Jun 10, 2024
1 parent f342f0f commit fd6d21e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MagnetShoesListener {
@OnEvent
public void onMagnetShoesRegistered(ApplyPropertyToBoughtItemEventImpl event) {
if (event.getPropertyName().equalsIgnoreCase("magnetshoes")) {
int probability = MiscUtils.getIntFromProperty("probability", "magnet-shoes.probability", event);
int probability = MiscUtils.getIntFromProperty("probability", "specials.magnet-shoes.probability", event);

event.setStack(ItemUtils.saveData(event.getStack(), MAGNET_SHOES_PREFIX + probability));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ data:
properties:
- name: "Golem"
speed: 0.25
follow: 16.0
follow-range: 16.0
stack:
type: GHAST_SPAWN_EGG
display-name: "Golem"
Expand Down
2 changes: 1 addition & 1 deletion plugin/common/src/main/resources/shop/shop.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ inventory {

property 'Golem', [
speed: 0.25,
follow: 16.0
'follow-range': 16.0
]
}
item('sheep_spawn_egg;1;TNT Sheep for 10 of gold') {
Expand Down
2 changes: 1 addition & 1 deletion plugin/common/src/main/resources/shop/shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ data:
properties:
- name: "Golem"
speed: 0.25
follow: 16.0
follow-range: 16.0
stack:
type: ghast_spawn_egg
display-name: "Golem"
Expand Down

0 comments on commit fd6d21e

Please sign in to comment.