mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-17 22:17:37 +01:00
Merge branch 'development'
This commit is contained in:
commit
60e013bd96
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "SongodaCore"
|
name: "SongodaCore"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "2.3.45"
|
version: "2.3.46"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -30,7 +30,7 @@ public enum CompatibleMaterial {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* 1.16 */
|
/* 1.16 */
|
||||||
ANCIENT_DEBRIES(),
|
ANCIENT_DEBRIS(),
|
||||||
BASALT(),
|
BASALT(),
|
||||||
BLACKSTONE(),
|
BLACKSTONE(),
|
||||||
BLACKSTONE_STAIRS(),
|
BLACKSTONE_STAIRS(),
|
||||||
@ -1356,10 +1356,10 @@ public enum CompatibleMaterial {
|
|||||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening
|
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening
|
||||||
return CompatibleMaterial.getMaterialFromNewBlock(block);
|
return CompatibleMaterial.getMaterialFromNewBlock(block);
|
||||||
} else { // Pre-Flattening
|
} else { // Pre-Flattening
|
||||||
if(block != null){
|
if(block != null) {
|
||||||
if (block.getData() != 0) {
|
if (block.getData() != 0) {
|
||||||
for (CompatibleMaterial cm : CompatibleMaterial.values()) {
|
for (CompatibleMaterial cm : CompatibleMaterial.values()) {
|
||||||
if (cm.getMaterial().equals(block.getType())) {
|
if (cm.isValidItem() && !cm.usesCompatibility() && cm.getMaterial() != null && cm.getMaterial().equals(block.getType())) {
|
||||||
if (cm.getData() == block.getData()) {
|
if (cm.getData() == block.getData()) {
|
||||||
return cm;
|
return cm;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user