This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//zadatak 1 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
void napuniRand(int niz[], int brojEl){ | |
srand(time(NULL)); | |
for(int i = 0; i < brojEl; i++){ | |
niz[i] = rand(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler(priority = EventPriority.MONITOR) | |
public void onBlockBreak(BlockBreakEvent event) { | |
final Block block = event.getBlock(); | |
int delay; | |
if (Tag.LEAVES.isTagged(block.getType())){ | |
delay = 2; | |
}else{ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// Don't do that. | |
Time: 2/12/22, 9:32 PM | |
Description: Container click | |
java.lang.IllegalArgumentException: Cannot set property IntegerProperty{name=books, clazz=class java.lang.Integer, values=[1, 2, 3, 4]} to 0 on Block{supplementaries:book_pile}, it is not an allowed value | |
at net.minecraft.world.level.block.state.StateHolder.m_61124_(StateHolder.java:125) ~[client-1.18.1-20211210.034407-srg.jar%23292!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:ferritecore.fastmap.mixin.json:FastMapStateHolderMixin,pl:mixin:A} | |
at net.mehvahdjukaar.supplementaries.common.block.tiles.BookPileBlockTile.updateTileOnInventoryChanged(BookPileBlockTile.java:65) ~[supplementaries-1.18.1-1.1.11.jar%23267!/:1.18.1-1.1.11] {re:classloading} | |
at net.mehvahdjukaar.selene.blocks.ItemDisplayTile.m_6596_(ItemDisplayTile.java:65) ~[selene-1.18-1.12.0.jar%23252!/:1.18-1.12.0] {re:classloading} |