Skip to content

Commit

Permalink
oh wait no the bukkit crate has a breaking change so it's 1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
IoIxD committed Oct 1, 2024
1 parent e0092e8 commit 04f8216
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# blackbox-rs

blackbox-rs is a Rust crate that is to be paired with [BlackBox](https://github.com/BlackboxMC/Blackbox), which allows you to create Bukkit compatible plugins using compiled langauges such as Rust.
blackbox-rs is a series of Rust crates that is to be paired with [BlackBox](https://github.com/BlackboxMC/Blackbox), which allows you to create Bukkit compatible plugins using compiled langauges such as Rust.

# Versioning

Four of the crates are frozen at `0.4.0` due to no longer needing updates. The only one that gets updates is `blackboxmc-rs-bukkit`, which uses semantic versioning but places the patch version at the equivalant Minecraft version. For example, `1.2.21` is version 1.2 of the plugin, with compatibility for 1.21.

# Contributing

Expand Down
10 changes: 5 additions & 5 deletions blackboxmc-rs-bukkit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blackboxmc_bukkit"
version = "0.5.21"
version = "1.0.21"
edition = "2021"
license = "LGPL-2.0-or-later"
description = "BlackboxMC bindings for org.bukkit"
Expand All @@ -9,11 +9,11 @@ description = "BlackboxMC bindings for org.bukkit"

[dependencies]
color-eyre = "0.6.2"
eyre = "0.6.8"
eyre = "0.6.8"
jni = "0.21.1"
blackboxmc_general = {version = "0.4.0", path = "../blackboxmc-rs-general"}
blackboxmc_bungee = {version = "0.4.0", path = "../blackboxmc-rs-bungee"}
blackboxmc_java = {version = "0.4.0", path = "../blackboxmc-rs-java"}
blackboxmc_general = { version = "0.4.0", path = "../blackboxmc-rs-general" }
blackboxmc_bungee = { version = "0.4.0", path = "../blackboxmc-rs-bungee" }
blackboxmc_java = { version = "0.4.0", path = "../blackboxmc-rs-java" }

[build-dependencies]
lazy_static = "1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions blackboxmc-rs-bukkit/src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3665,7 +3665,7 @@ impl<'mc> ServicesManager<'mc> {
pub fn get_registrations(
&self,
service: jni::objects::JClass<'mc>,
) -> Result<Vec<crate::plugin::RegisteredServiceProvider<T, 'mc>>, Box<dyn std::error::Error>>
) -> Result<Vec<crate::plugin::RegisteredServiceProvider<'mc>>, Box<dyn std::error::Error>>
{
let mut args = Vec::new();
let mut sig = String::from("(");
Expand All @@ -3682,7 +3682,7 @@ impl<'mc> ServicesManager<'mc> {
let iter = col.iterator()?;
while iter.has_next()? {
let obj = iter.next()?;
new_vec.push(crate::plugin::RegisteredServiceProvider::<T>::from_raw(
new_vec.push(crate::plugin::RegisteredServiceProvider::from_raw(
&self.jni_ref(),
obj,
)?);
Expand Down

0 comments on commit 04f8216

Please sign in to comment.