Skip to content

Commit

Permalink
feat: move to kube 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hillcox committed Jul 25, 2023
1 parent 53fe5e5 commit 9428948
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Kube Utils Changelog

## [1.0.2]
## [1.0.3]

### Added
### Changed

- Added a new Level method to allow for finding a single block within an area `findSingleBlockWithinRadius`
- Added a `triggeredBy` field to the `KuEvents.playerStarterItems` event as we now trigger the event for a player joining as well as a player changing dimension. If the event does not place and item in the inventory. We assume it failed and will retry on either a join or a dimension change
- Updated support to KubeJS 6.1! This will cause issues when attempted to use with 6.0. You have been warned!
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ dependencies {

forge "net.minecraftforge:forge:${project.forge_version}"

modApi "dev.latvian.mods:kubejs-forge:1902.6.0-build.140"
modApi "dev.latvian.mods:rhino-forge:1902.2.2-build.264"
modApi "dev.latvian.mods:kubejs-forge:1902.6.1-build.327"
modApi "dev.latvian.mods:rhino-forge:1902.2.2-build.268"
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ loom.platform=forge
minecraft_version=1.19.2
forge_version=1.19.2-43.2.3

mod_version=1.0.2
mod_version=1.0.3
maven_group=pro.mikey.mods
archives_base_name=kube-utils
mod_id=kubeutils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pro.mikey.kubeutils.kubejs.events;

import dev.latvian.mods.kubejs.event.EventResult;
import dev.latvian.mods.kubejs.item.ItemHandlerUtils;
import dev.latvian.mods.kubejs.player.PlayerEventJS;
import net.minecraft.world.entity.EquipmentSlot;
Expand Down Expand Up @@ -61,9 +62,10 @@ public void addEquipmentItem(String equipmentSlot, ItemStack item) {
this.armorItems.put(slot, item);
}


@Override
protected void afterPosted(boolean cancelled) {
if (cancelled) {
protected void afterPosted(EventResult cancelled) {
if (cancelled.interruptTrue()) {
return;
}

Expand Down

0 comments on commit 9428948

Please sign in to comment.